SYSADATA record types

The SYSADATA file contains records classified into different record types. Each type of record provides information about the COBOL program being compiled.

Each record consists of two parts:

  • A 12-byte header section, which has the same structure for all record types, and contains the record code that identifies the type of record
  • A variable-length data section, which varies by record type

Table 1. SYSADATA record types
Record type What it does
Job identification record: X'0000' Provides information about the environment used to process the source data
ADATA identification record: X'0001' Provides common information about the records in the SYSADATA file
Compilation unit start | end record: X'0002' Marks the beginning and ending of compilation units in a source file
Options record: X'0010' Describes the compiler options used for the compilation
External symbol record: X'0020' Describes all external names in the program, definitions, and references
Parse tree record: X'0024' Defines a node in the parse tree of the program
Token record: X'0030' Defines a source token
Source error record: X'0032' Describes errors in source program statements
Source record: X'0038' Describes a single source line
COPY REPLACING record: X'0039' Describes an instance of text replacement as a result of a match of COPY. . .REPLACING operand-1 with text in the copybook
Symbol record: X'0042' Describes a single symbol defined in the program. There is one symbol record for each symbol defined in the program.
Symbol cross-reference record: X'0044' Describes references to a single symbol
Nested program record: X'0046' Describes the name and nesting level of a program
Library record: X'0060' Describes the library files and members used from each library
Statistics record: X'0090' Describes the statistics about the compilation
EVENTS record: X'0120' EVENTS records provide compatibility with COBOL/370. The record format is identical with that in COBOL/370, with the addition of the standard ADATA header at the beginning of the record and a field indicating the length of the EVENTS record data.