Introduction to DDL
Data Definition Language (DDL) Reference Manual — 426798-002
1 -6
Creating a Database
code. For information on file attributes that you cannot specify in DDL, see the File
Utility Program (FUP) Reference Manual.
When you finish editing the file creation commands, you can run the FUP program
using the FUP command file as the source file. FUP creates the files according to the
file attributes originally specified in the DDL RECORD statements. For a full description
of the FUP program and its commands, see the File Utility Program (FUP) Reference
Manual.
You can also generate FUP file creation commands from records previously stored in a
dictionary. To do this, open the dictionary and a FUP file, and use an OUTPUT
statement to select record definitions from the dictionary for translation to FUP file
creation commands.
Figure 1-3
on page 1-7 illustrates the following steps for creating database files from
DDL record definitions stored in a dictionary:
1. Run DDL interactively, open the dictionary, and open the FUP command file. Enter
the OUTPUT RECORD statement, specifying records defined in the dictionary.
DDL reads the record definitions from the dictionary and writes file creation
commands for each specified record to the open FUP file.
2. (Optional Step). Exit from DDL and run the EDIT program to make any changes
you want to the FUP commands in the FUP file; or stay in DDL, close the FUP file,
use the EDIT command to modify the FUP file, and then exit from DDL.
3. Run FUP with the FUP command file as the input file. FUP creates the database
files from the commands in the command file.
The files in a Guardian environment database are managed by the Enscribe record
manager. For a complete discussion of file structures and access methods, see the
Enscribe Programmer’s Guide.
To generate SQLCI commands from your DDL RECORD definitions, use the SQL
Convert utility, described in the NonStop™ SQL/MP Reference Manual.