%ADDRESS

Contains the address of the location where the program has been interrupted.

For COBOL only:

  • You can use the OFFSET table in the compiler listing to determine statement numbers. To determine the offset of the current statement, subtract %EPA (the address of the primary entry point) from %ADDRESS, as shown in the example below.
    LIST %ADDRESS - %EPA
  • %ADDRESS might not locate a statement in your COBOL program in all instances. When an error occurs outside of the program, in some instances, %ADDRESS contains the actual interrupt address. This occurs only if z/OS® Debugger is unable to locate the last statement that was executed before control left the program.