DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 46
DEFLIST Command
The command DEFLIST causes DDL to show the offsets of each item in VARIABLE-
TABLE:
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
.) The referenced definitions are
included if you use DEFLIST to show the CUSTOMER record offsets:
DEFLIST produces the following listing for the record CUSTOMER:
DEFLIST OUTPUT
DEF variable-table
Loading Definition VARIABLE-TABLE
Including 01 VARIABLE-TABLE (0:402)
Including 02 TABLE-SIZE (0:2)
Including 02 DATA-TABLE (2:4) [1:100]
Table starts at byte 0 with a maximum
length of 402 bytes
Element starts at byte 0 and has a
length of 2 bytes
Element starts at byte 2, has a length of 4
bytes, and occurs 1 to 100 times
VST909.vsd
!?DEFLIST
!OUTPUT RECORD customer.
Include descriptions of
referenced definitions in
the listing
VST910.vsd
Loading Record CUSTOMER
Including: 01 CUSTINFO (0:69)
Including: 02 CUSTNUM (0:4)
Including: 03 LAST-NAME (4:12)
Including: 03 FIRST-NAME (16:8)
Including: 03 MIDINIT (24:2)
Including: 02 ADDR (26:43)
Including: 03 ADDRESS (26:22)
Including: 03 CITY (48:14)
Including: 03 STATE (62:2)
Including: 03 ZIP-CODE (64:5)
69 bytes starting at byte 0
4 bytes starting at byte 0
12 bytes starting at byte 4
8 bytes starting at byte 16
2 bytes starting at byte 24
43 bytes starting at byte 26
22 bytes starting at byte 26
14 bytes starting at byte 48
2 bytes starting at byte 62
5 bytes starting at byte 64
VST911.vsd