Data Definition Language (DDL) Reference Manual

Dictionary-Manipulation Statements
Data Definition Language (DDL) Reference Manual529431-004
8-7
OUTPUT UPDATE
The statements in Example 8-8 on page 8-7 cause the DDL compiler to generate
COBOL data descriptions for all constants in the dictionary, one token type, and two
token codes. These descriptions are written to the open COBOL source code file,
spitkn.
Rather than specify a list of the particular constants needed by the token type and
token code, Example 8-8 on page 8-7 generates source code for all the constants in
the dictionary.
OUTPUT UPDATE
The OUTPUT UPDATE statement generates DDL source code that updates every
referenced object in the open dictionary and writes this code to the open DDL source
code file for subsequent compilation.
constant-name
is the name of a constant in the open dictionary. You can specify constant-name
up to 50 times.
Example 8-7. OUTPUT * Statement
15>DDL
Run DDL compiler.
!?DICT
Open dictionary.
!?DDL ddlsrc
Open and clear DDL source code file.
!OUTPUT *.
Write all entries from dictionary to ddlsrc.
!?NODDL
Close DDL source code file.
!?FUP fupsrc
Open and clear FUP source code file.
!OUTPUT RECORD *.
Write all records from dictionary to fupsrc.
Example 8-8. OUTPUT Statements
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
OUTPUT UPDATE { CONSTANT constant-name ... }
{ [ DEF[INITION] ] def-name ... }
{ TOKEN-TYPE type-name ... } .