Data Definition Language (DDL) Reference Manual

Introduction to DDL
Data Definition Language (DDL) Reference Manual529431-004
1-9
Generating Source Code
Generating Source Code
The DDL compiler can generate source code for definitions and records in any of the
languages DDL supports: C, COBOL, FORTRAN, Pascal (on D-series systems), pTAL,
TACL, or TAL. In addition, the DDL compiler can generate source code for constants
and SPI token types, token codes, and token maps in C, COBOL, Pascal (on D-series
systems), pTAL, TACL, or TAL. The DDL objects, once translated to source code, are
used for a variety of application functions. DDL objects can describe the data in a
database and the data local to an application; messages used for interprocess
communication; units of work for the Transfer Delivery System (only on G-series
systems); and SPI tokens used to build SPI messages.
For the DDL compiler to generate source code, the appropriate language source code
file must be open. To open a language source code file, you can include one or more
Figure 1-3. Creating Database Files
Dictionary
FUP
Command
File
Edited
FUP
Command
File
DDL
PS TEXT
EDIT
FUP
Database
12> DDL DICT
!?FUP fupfile
!OUTPUT RECORD *.
!EXIT
1
Generate FUP command
file from dictionary
13> TEDIT fupfile
.
.
.
2
14> FUP / IN fupfile
/
3
Create database files
Edit FUP command
file. (optional step)
VST003.vsd