SOC 7 abend - interview question

In this Mainframe Forum - You can post your queries on JCL,VSAM,COBOL,DB2,IMS Abend codes , solutions etc..

Moderator: Moderator Group

Post Reply
sonakasi
Member
Posts: 20
Joined: Wed Nov 09, 2011 9:09 am
Location: India

SOC 7 abend - interview question

Post by sonakasi » Thu Dec 29, 2011 7:54 pm

Hi All,
I have been questioned as , If we are processing through millions of records and we get a SOC7 abend, so how do you find out where excatly its abended and how do you resolve this ??
Answer :
When we run the program and it abends with SOC7, we have to take the last 4 bytes in compiler listing and check where excatly it got abended
SONA KASI

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Fri Dec 30, 2011 10:40 am

When we run the program and it abends with SOC7, we have to take the last 4 bytes in compiler listing and check where excatly it got abended
I do not know what the last 4 bytes of a compiler listing might have that would identify an Abend at run-time. . .

Most organizations now use one or more tools that pin-point the cause of things like an s0c7 (Abend-Aid is one).

If the system has NO such tool, one must use the registers at the time of the abend to determine the next sequential instruction (nsi) and the core dump to find the problem instruction and then the problem data area (file or w-s or. . .).
Have a good one

sonakasi
Member
Posts: 20
Joined: Wed Nov 09, 2011 9:09 am
Location: India

Post by sonakasi » Fri Dec 30, 2011 3:15 pm

Hi DikDude,
core dump here you talk about..is it CEEDUMP ???
SONA KASI

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Sat Dec 31, 2011 10:49 am

The CEEDUMP will probably not be enough. . .

Suggest you speak with people familiar with debugging and the tools available on your system.

This forum is probably not a good place to try to learh how to read a dump for problem determination.
Have a good one

nareshv_99
Member
Posts: 25
Joined: Sun Feb 05, 2012 10:59 pm
Location: Bangalore

Post by nareshv_99 » Mon Feb 06, 2012 9:16 pm

follow below steps..
1. when its gets abend you'll find OFFSET in the SYSOUT/SYSUDUMP
like below
at entry offset +00000043A at address 00008116
2. recompile the program with source listing
in listing find the offset (here look for 043A) and find the line where the S0C7 occurred.

we know S0C7 happens due to invalid data.
To find invalid data out of millions of records
open the input file thru FILA. then type INVALID on command prompt, it'll shows all invalid records.

correct me if i'm wrong..
add something if i miss any..
i welcome for more in-depth details.. :D

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Tue Feb 07, 2012 12:58 am

What on earth is FILA? I've never seen it at any place I have worked so this option is not a generic solution.
Regards
Nic

nareshv_99
Member
Posts: 25
Joined: Sun Feb 05, 2012 10:59 pm
Location: Bangalore

Post by nareshv_99 » Tue Feb 07, 2012 8:56 am

why dont you provide an answer then ?

sorry it was not INVALID DATA.. it is F/filed-name INVALID

Refer: 100CoolMainframe.pdf
TIP: 70
u can refer to TIP: 77

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Tue Feb 07, 2012 11:21 am

What is 100coolmainframe.pdf? You provide no link.
Regards
Nic

User avatar
dbzTHEdinosauer
Moderator
Posts: 981
Joined: Mon Oct 02, 2006 8:31 pm

Post by dbzTHEdinosauer » Tue Feb 07, 2012 11:41 am

Nic,
i think it will be rather revealing to troll thru nareshv 99's posts in other threads.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Tue Feb 07, 2012 5:48 pm

I know - he is trying to get to 10 meaningful posts so that he can get the free e-book. I think he has had 2 so far.
Regards
Nic

nareshv_99
Member
Posts: 25
Joined: Sun Feb 05, 2012 10:59 pm
Location: Bangalore

Post by nareshv_99 » Tue Feb 07, 2012 10:49 pm

i recently(2 days ago i guess) joined this community. and i'm mainframe fresher.. i would like to learn things that's why posted. i'm not expecting free any material too..

thnks Ni C.. atleast you said i have 2 good posts.. :)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Wed Feb 08, 2012 2:36 pm

He has not mentioned about good or bad but if that pleases you...:wink:
Regards,
Anuj

academyindia4

Topic deleted by Admin

Post by academyindia4 » Tue Jan 19, 2016 12:58 pm

<< Content deleted By Admin >>

Girija
Member
Posts: 4
Joined: Sat Aug 19, 2017 10:04 am
Contact:

Post by Girija » Thu Jan 11, 2018 8:16 pm

Hi Team,

we can resolve in 2 ways.

1. using skip logic like IF RECORD NOT EQUAL TO NUMERIC can skip the record.

2. using offset value find the exact place and display the key of record and delete from file.


Thanks,
Girija.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others