HP DDL D40 Reference Manual page 222

Data definition language
Table of Contents

Advertisement

Dictionary Manipulation Statements
*
is a wild-card symbol. Depending on the OUTPUT statement format, the asterisk
directs DDL to write all the objects of a specified type in the currently open
dictionary or to write all the objects of all types.
OUTPUT Statement Guidelines
The following points are guidelines for using the OUTPUT statement:
OUTPUT is used to write DDL objects from an open DDL 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 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 file.
Any objects written to a DDL source file with the OUTPUT statement are listed on
the DDL compiler listing.
If C, COBOL, Pascal, 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 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.
OUTPUT Statement Examples
In the following example, an OUTPUT RECORD statement causes the DDL compiler
to retrieve the data structure and file attributes of the record ORDER-INFO from an
open dictionary and write the resulting source to open COBOL and FUP source files:
!?DICT $data.sales
!?COBOL $data.sales.cobsrc
!?FUP $data.sales.fupsrc
!OUTPUT RECORD order-info.
Data Definition Language (DDL) Reference Manual—426798-002
Open dictionary
Open COBOL source file
Open FUP source file
Write source for ORDER-INFO
VST805.vsd
8 -6
OUTPUT Statement

Advertisement

Table of Contents
loading

Table of Contents