You are on page 1of 5

SOC7 Abend

S0C7 Error the description comes in last line of run JCL SDSF as shown
below

Press F11 (to scroll to right) to see the offset value clearly. ABCDE is the
program name.

Patni Internal
Take down the Offset value given in the message ( here it is 00000232 )
Then go to the SDSF output of compile JCL
(Don’t forget to use XREF complier option at the time of compilation)

Program as per complier listing

Patni Internal
Go to complier listing (i.e. the SDSF for compile JCL)
The offset is provided for each line with HEXLOC along with line number
(See the below screenshot)

Patni Internal
Check with offset value is in which range
For example
The offset in our program is +00000232
The line 14 (LINE # 000014) has the offset value of 000222 which indicates
the starting value

The line 15 (LINE # 000015) has the offset value of 00022C (but it is
commented in program).

The offset is in the range of starting offset of line 14 and line 15 offset
clearly indicating line 14 has the error

Actual program

Patni Internal
The reason for the error is: use of an UN initialized variable in
arithmetic
Operation
i.e.
A is not initialized,
And X is comp3; See the X is comp or comp3 as the error
may not come if X is Display.

Patni Internal

You might also like