MAINFRAME - TIP OF THE DAY :
When you specified V for RECFM parameter, LRECL value is largest record in the file plus 4 bytes. These four bytes contain the actual length of each variable length record in the file
Programmers Voted for below topics. Please Vote for good Posts.
Thank You! for your feedback. Connecting to the server. Please Wait...
Posted: Thu Dec 29, 2011 7:54 pm Post subject: SOC 7 abend - interview question
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 ??
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
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
follow below steps..
1. when its gets abend you'll find OFFSET in the SYSOUT/SYSUDUMP
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..
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.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
Cobol Tutorial This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial This Tutorial covers all important aspects of DFSORT. Has more SORT examples