Dictionary Manipulation Statements
Data Definition Language (DDL) Reference Manual — 426798-002
8 -7
OUTPUT Statement
If you have changed your dictionary and want to make sure your source files
correspond exactly to the changed dictionary, you can use an OUTPUT * statement:
The following statements cause DDL to generate COBOL85 data descriptions for all
constants in the dictionary, one token type, and two token codes. These descriptions
are written to the open COBOL source file, SPITKN:
16> DDL DICT $spi.tokens
!?COBOL spitkn
!OUTPUT CONSTANT *.
!OUTPUT TOKEN-TYPE assn-typ-status.
!OUTPUT TOKEN-CODE assn-tkn-my-status, assn-tkn-stat-reply.
!EXIT
Rather than specify a list of the particular constants needed by the token type and
token code, this example generates source code for all the constants in the dictionary.
15> DDL
!?DICT
!?DDL ddlsrc !
!OUTPUT * .
!?NODDL
!?FUP fupsrc !
!OUTPUT RECORD * .
!EXIT
Run DDL compiler
Open dictionary
Open and clear DDL source file
Write all entries from the dictionary to DDLSRC
Close DDL source file
Open and clear FUP source file
Write all records from the dictionary to FUPSRC
VST806.vsd