Thread: Abends and Error Codes

S0C7 abend offset does not match my listing

Started by Rick • user4 replies225 viewsLast activity 2 weeks ago
Post #1
0 votes
Rick
Reputation
302
Posts: 6
Joined: Jun 14, 2024, 9:41 AM
Posted: Jun 21, 2026, 10:25 AM

Batch step abended S0C7. I have the offset from SYSOUT (reason 00000007). Pulled the compile listing from SDSF and I cannot map the offset to a statement. Compiled through Endeavour with our standard options.

Job itself has run for years. Pretty sure the bug is in the program not JCL. Do I need OFFSET or LIST to track this down?

Post #2
0 votes
Marty
Reputation
412
Posts: 15
Joined: Aug 12, 2024, 9:14 AM
Posted: Jun 21, 2026, 12:25 PM

Recompile with OFFSET,NOLIST. The condensed procedure division map lines up offsets to verbs. Make sure listing timestamp matches the load module or you will chase ghosts.

Post #3
0 votes
Rick
Reputation
302
Posts: 6
Joined: Jun 14, 2024, 9:41 AM
Posted: Jun 21, 2026, 6:25 PM

Recompiled with OFFSET. Offset pointed at an ADD on a COMP-3 field. Input had low values in a trailer count from a vendor layout change. Fixed the copybook.

Post #4
0 votes
Tyler
Reputation
34
Posts: 5
Joined: Nov 8, 2025, 1:44 PM
Posted: Jun 22, 2026, 2:25 PM

Saving this. I always stare at the dump and get nowhere.

You must be signed in to reply to this thread