Is it a Cobol program giving you a S0C7?
If you look at your output in the spool, you should see a "dump" of some sort. If it is an LE dump it will tell you a displacement which you can use to find, on the Cobol output listing, which instruction is the problem. You'll probably also find an LE message in the sysout giving you the same.
So, you need to tell us what sort of DUMP you have, and whether you have the Cobol listing and whether the listing contains a reference to the source line numbers (in the listing) with a displacement (some stuff in hexadecimal).