COBOL Manual for TNS/E Programs (H06.03+)
Creating and Compiling HP COBOL Source
Programs
HP COBOL Manual for TNS/E Programs—520347-003
22-21
Using Data Definition Language (DDL)
Topics:
•
Describing the Data Structures
•
Data Declaration (COPY) Library
•
File Utility Program (FUP) Commands
•
Data Dictionary
Describing the Data Structures
You describe the data structures of your database with DEFINE statements. Each data
item can be an elementary item or a data structure. A data item can be composed of
explicit, COBOL-like definitions or it can refer to data items defined earlier in the data
dictionary. In the latter case, you define records with RECORD statements. A record
definition can include both explicitly defined data items and data items defined earlier
in the data dictionary.
In Example 22-3, note the absence of the level number 01.
Figure 22-3. DDL Input and Output
Example 22-3. Input to the DDL Compiler (page 1 of 2)
DEFINE NAME.
02 LAST-NAME PIC X(15).
02 MIDDLE-INITIAL PIC X(1).
02 FIRST-NAME PIC X(15).
END
Your
Description
DDL
Compiler
Data Declaration
(COPY) Library
FUP
Command File
Data
Dictionary
VST700.vsd










