Data Definition Language (DDL) Reference Manual (G06.24+)

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual426798-002
9-45
DEFLIST Command
The DEFLIST description appears in either of the following formats:
level-number field-name (offset:length) [min:max]
level-number field-name (offset:length)
depending on whether a minimum and maximum (or total) number of occurrences
have been defined.
The variables in these formats represent the following values:
For users of SPI, DEFLIST can help you understand ZSPI-DDL-PARM-ERR.Z-
OFFSET, the definition that provides the byte offset within a structure that is in
error. DEFLIST shows where the error is.
DEFLIST Command Examples
Assume that this definition of VARIABLE-TABLE is already in the dictionary:
DEF variable-table.
02 table-size TYPE BINARY 16.
02 data-table TYPE BINARY 32
OCCURS 1 TO 100 TIMES DEPENDING ON table-
size.
END
Variable Value
level-number Level number assigned to the field in the referring structure.
field-name Name of the included field or group.
offset Starting byte position of the field or group within the referring
structure.
length Length of the field in bytes.
min Minimum number of occurrences for OCCURS DEPENDING ON or
the total number for OCCURS.
max Maximum number of occurrences for OCCURS DEPENDING ON or
the total number for OCCURS.