Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-46
DEFLIST
DEFLIST
includes in the compiler listing the level number, name, size, and byte offset of 
definitions referenced by a DEFINITION or RECORD statement.
NODEFLIST
excludes from the the compiler listing the level number, name, size, and byte offset 
of definitions referenced by a DEFINITION or RECORD statement.
DEFLIST can be useful when a referenced definition is included in generated source 
code files.
The DEFLIST description appears in either of these 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.
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.
In Example 9-21 on page 9-46, assume that the record CUSTOMER indirectly refers to 
three definitions−CUSTNUM, NAME, and ADDR−through the definition CUSTINFO. 
(These definitions are in the sample database schema in Appendix B, Sample 
Schemas.) 
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.
Example 9-21. DEFLIST Command (page1of2)
Definition in 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










