Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
Many times the reason for SOC7 is an un-initialized numeric item.
Examine that possibility first.
Many installations provide you a dump for run time abends
These dumps provide the offset of the last instruction at which the abend occurred. Examine the compilation output XREF listing to get the verb and the line number of the source code at this offset. Then you can look at the source code to find the bug.
S0C7 usually happens due to improper handling of numric fields. Make sure all your fields have been initialized before move or compute operations. and that alphanumeric items are not moved to numeric items.
When you get a S0C7 the system will display an OFFSET.
Go to the compile listing of the program and search for the HEXLOC ..this is basically the hex loactions of the code or the offset. Here search for hte given offset or the closest value to the offset. There wil be a line number to the left. Search for this line number and u get the stmts where the S0c7 Might have occured.