Skip to content
systemcoding.dev
Mainframe

Find the failing offset in a CEEDUMP

Read the Language Environment traceback in a CEEDUMP to find the failing program, its entry offset and the statement number, on z/OS 3.1.

1 min read
Summarize in AI

When a COBOL program abends under Language Environment, the CEEDUMP DD holds a traceback that points at the failing spot before you open any storage.

Text
Traceback:
  DSA Addr  Program Unit  PU Addr   PU Offset  Entry   E Addr    E Offset  Statement  Load Mod  Service  Status
  00020A28  PAYROLL       05001C38  +0000071A  PAYROLL 05001C38  +0000071A  1042       PAYROLL            Call
  00020968  MAINPGM       05000010  +00000216  MAINPGM 05000010  +00000216  310        MAINPGM            Call

The top line is the program that failed, because the traceback runs from the point of failure back to the caller. PU Offset is the displacement from the start of the program unit, here +71A, and Statement is the compiler's statement number when the program was built with TEST or the line numbers option available in your compiler.

Take the offset, not the address, to your listing. Addresses change from run to run because the load module lands in different storage, whereas the offset inside a program stays the same for one compile. The traceback format is from Language Environment on z/OS 3.1, and the next snippet shows how to map the offset in the compiler listing when no statement number is given.

Also inDebugging
Taggedz oscobol
Share

More snippets

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.