OFFSET

Use OFFSET to produce a condensed PROCEDURE DIVISION listing.

OFFSET option syntax

Read syntax diagramSkip visual syntax diagramNOOFFSETOFFSET

Default is: NOOFFSET

Abbreviations are: OFF | NOOFF

With OFFSET, the condensed PROCEDURE DIVISION listing will contain line numbers, statement references, and the location of the first instruction generated for each statement.

These items will also be written to the output listing:

  • Constant area
  • Program prolog areas (PPA1, PPA2, PPA3, PPA4)
  • Time stamp and compiler version information
  • Compiler options and program information
  • Base locator table
  • External symbols dictionary
  • Static maps
  • Automatic maps
Notes: Start of change
  • The optimizer might inline paragraphs, move code around or indeed place it after the body of the program if little used, such as the error message formatting code. This might make the OFFSET report less useful than it was with previous compilers. You can refer to the LIST output instead (note that OFFSET and LIST are mutually exclusive options). For details, see Reading LIST output.
  • Due to the out of line code used for error message formatting, Language Environment® generated offsets, as indicated in "From compile unit {name} at entry point {name} at compile unit offset {offset}...", might be outside the offset range of the program. In these cases, refer to the statement number in the COBOL message (IGZnnnns) to locate the problem.
End of change