Introduction to DDL
Data Definition Language (DDL) Reference Manual — 426798-002
1 -7
Generating Source Code
Generating Source Code
DDL can generate source code for definitions and records in any of the languages DDL
supports: C, COBOL, FORTRAN, Pascal, pTAL, TACL, or TAL. In addition, DDL can
generate source code for constants and SPI token types, token codes, and token maps
in C, COBOL, Pascal, pTAL, TACL, or TAL. The DDL objects, once translated into
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; and SPI
tokens used to build SPI messages.
For DDL to generate source code, the appropriate language source file must be open.
To open a language source file, you can include one or more C, COBOL, FORTRAN,
Pascal, pTAL, TACL, or TAL commands in the source schema. When DDL compiles
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