Data Definition Language (DDL) Reference Manual
Dictionary-Manipulation Statements
Data Definition Language (DDL) Reference Manual—529431-004
8-6
OUTPUT
type-name
is a name that uniquely identifies an existing token type in the open dictionary. You
can specify type-name up to 50 times.
*
specifies either all objects of the given type or, when no type is specified, all
objects.
OUTPUT is used to write DDL objects from the open dictionary to any open DDL, FUP,
REPORT or language source code files.
OUTPUT cannot be used to generate output for Pathmaker objects. Pathmaker objects
(servers, services, requesters, and screens) are added to and deleted from a dictionary
by the Pathmaker product, not by the DDL compiler.
If a DDL source code file is open, the OUTPUT statement causes DDL to retrieve the
specified objects from the open dictionary and generate DDL statements to define the
objects in the specified DDL source code file.
Any objects written to a DDL source code file with the OUTPUT statement are listed on
the DDL compiler listing.
If C, COBOL, Pascal (on D-series systems), pTAL, TACL, or TAL source code files are
open, the OUTPUT statement retrieves any of the specified objects (constant,
definition, record, token code, token map, or token code) from the open dictionary and
generates the appropriate source code in each open source code file.
If FORTRAN source code files are open, the OUTPUT statement retrieves the
specified definitions and records from the open dictionary and generates the
appropriate source code in each open source code file.
If a FUP source code file is open, the OUTPUT statement retrieves the data structure
and file attributes for any specified records from the dictionary and writes FUP file
creation commands to the open FUP file.
In Example 8-6
on page 8-6, an OUTPUT RECORD statement causes the DDL
compiler to retrieve the data structure and file attributes of the record order-info
from the open dictionary and write the resulting source to open COBOL source code
files and FUP source code files.
If you have changed your dictionary and want to ensure that your source code files
correspond exactly to the changed dictionary, use an OUTPUT * statement.
Example 8-6. OUTPUT RECORD Statement
!?DICT $data.sales
Open dictionary.
!?COBOL $data.sales.cobsrc
Open COBOL source code file.
!?FUP $data.sales.fupsrc
Open FUP source code file.
!OUTPUT RECORD order-info.
Write source for order-info.