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

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual426798-002
9-91
REPORT Command
The REPORT command produces a schema report when DDL compiles the
schema; REPORT can be placed in a DDL run command or in the schema itself.
Only one report file can be open at a time. If you use the REPORT command when
you already have a report file open, DDL closes the current report file before
opening the new report file.
The report on each DDL object is written to a separate report page.
For each field in the schema, the report provides this information:
°
Level number
°
Name
°
Offset in bytes from the start of a group or record
°
Data type
°
Size
If the field is defined by reference, the report also provides the source definition.
If the report destination you specify is an existing file, DDL appends the report to
the contents of the file.
REPORT Command Examples
To produce a schema report on the output device $S.#PRINTER, you could enter the
following noninteractive command:
40> DDL/IN myschema/DICT, REPORT $S.#printer
You could generate the same report interactively as follows:
41> DDL DICT
!?REPORT $S.#printer
!?SOURCE myschema
!EXIT
You do not need the schema to produce a report. You can have DDL generate the
information from an open dictionary. For example:
When printed, the report stored in RPTSRC looks like this:
Dictionary Subvol: $BOOKS1.DDL
Definition NAME created.
Num LV Element Name Offset Data Type & Size
Source Definition
42> DDL
!?DICT
!?REPORT rptsrc !
!OUTPUT DEF name.
!EXIT
Open the dictionary
Open the report file
Send the definition to RPTSRC
VST922.vsd