Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-93
REPORT
To produce a schema report on the output device $S.#PRINTER, you can enter the
noninteractive command:
40> DDL/IN myschema/DICT, REPORT $S.#printer
You can generate the same report interactively:
41> DDL DICT
!?REPORT $S.#printer
!?SOURCE myschema
!EXIT
If any object is defined by reference to another object, the name of the referenced
object appears under the heading “Source Definition.”
You do not need the schema to produce a report. You can have the DDL compiler
generate the information from the open dictionary, as in Example 9-46 on page 9-93.
Example 9-46. REPORT Command
DDL Input
42> DDL
!?DICT
Open the dictionary.
!?REPORT rptsrc !
Open the report file.
!OUTPUT DEF name.
!EXIT
Send the definition to RPTSRC.
DDL Output (Report in RPTSRC)
Dictionary Subvol: $BOOKS1.DDL
Definition NAME created.
Num LV Element Name Offset Data Type & Size
Source Definition
001 01 NAME 0 Group 22
002 02 LAST-NAME 0 Character 12
003 02 FIRST-NAME 12 Character 8
004 02 MIDINIT 20 Character 2
Definition size is 22 bytes.