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

Moderator: Moderator Group

Post Reply
Posts: 1
Joined: Fri Jul 07, 2006 8:34 pm


Post by pradeepck » Fri Jul 07, 2006 8:40 pm


Please can you advise on how can we actually find the exact field that has bad data for SOC7 abend, based on CEEDUMP and other messages.
As the line number given in SYSOUT may not be the correct location of the error data.

What exactly is offset..?


User avatar
Active Member
Posts: 144
Joined: Fri Feb 24, 2006 11:33 am

Post by arrbee » Mon Jul 10, 2006 10:57 am

It is not always easy to find out the exact variable that causing the S0C7 abend. The offset sometimes shows the nearest instructin that was executed and caused the abend.

You will have to use LIST, OFFSET compiler options if you need more details.

Arr Bee
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)

Posts: 12
Joined: Wed Nov 08, 2006 1:03 am

Post by rahul_kolhe » Fri Nov 10, 2006 4:33 am

Do you have abendaid installed in system? You can trace it under vendor utilities.

Which will tell you the exact error location and reson like below.

* Error Location *

The next sequential instruction to be executed was at displacement
000008E2 in procedure P130_EXCEPTION_PROCESS.

* Analysis of Error *

A Data Exception is caused when a packed decimal operand has an invalid
digit (not 0-9), or its last byte contains an invalid sign (not A, B, C,
D, E, or F).

Now 000008E2 is the hex value for the statement no in the program. You can find last 3 digit 8E2(hex value) in Compile listing of the program. The problem is in previous statement.

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

Post by Anuj Dhawan » Sun Nov 23, 2008 6:06 pm


You might like to look at this link: ... light=s0c7

And by the way, it's S0C7 (S zero C 7) not SOC7.


Topic deleted by Admin

Post by academyindia4 » Fri Jan 15, 2016 8:54 pm

<< Content deleted By Admin >>


Topic deleted by Admin

Post by academyindia4 » Fri Jan 15, 2016 9:43 pm

<< Content deleted By Admin >>

Post Reply


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.
Mainframe Interview questions

Other References
Mainframe Tools and others