Introduction to DDL
Data Definition Language (DDL) Reference Manual — 426798-002
1 -5
Creating a Database
2. Run the DDL compiler using the source schema as the input file, or run DDL
interactively, submitting the source schema with a SOURCE command. In either
case, use the DICT or DICTN command to open the dictionary on a specified
volume and subvolume or on the default volume and subvolume. Optionally, you
can specify a print device to receive the compiler listing.
Creating a Database
You use DDL RECORD statements to define database files. If you specify a FUP
command in a source schema or interactively, DDL opens a FUP file, translates each
subsequent RECORD statement into FUP file creation commands, and writes the
commands to the open FUP file.
The FUP command file is an EDIT file. If you want to add to the FUP commands
generated by DDL, you can close the FUP file and then modify it with a text editor. For
example, you could create a partitioned file by adding the PART parameter to the FUP
Figure 1-2. Creating a Dictionary
PS TEXT EDIT
DDL
Source
Schema
Dictionary
Schema
Listing
10> TEDIT schema
DEF. . .
.
.
.
RECORD. . .
.
.
11> DDL / IN schema / DICT
or
11> DDL DICT
!?OUT $S.#printer
!?SOURCE schema
!EXIT
1
2
Build schema in EDIT file
Compile schema and create dictionary
VST002.vsd