SOC 7 abend - interview question
Moderator: Moderator Group
SOC 7 abend - interview question
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
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
I do not know what the last 4 bytes of a compiler listing might have that would identify an Abend at run-time. . .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
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
-
- Member
- Posts: 25
- Joined: Sun Feb 05, 2012 10:59 pm
- Location: Bangalore
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..
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..

-
- Member
- Posts: 25
- Joined: Sun Feb 05, 2012 10:59 pm
- Location: Bangalore
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
-
- Member
- Posts: 25
- Joined: Sun Feb 05, 2012 10:59 pm
- Location: Bangalore
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page