Creating A Database; Figure 1-2. Creating A Dictionary - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

Introduction to DDL
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.

Figure 1-2. Creating a Dictionary

Build schema in EDIT file
1
10> TEDIT schema
DEF. . .
.
.
.
RECORD. . .
.
.
Compile schema and create dictionary
2
11> DDL / IN schema / DICT
or
11> DDL DICT
!?OUT $S.#printer
!?SOURCE schema
!EXIT

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
Data Definition Language (DDL) Reference Manual—426798-002
PS TEXT EDIT
Source
Schema
DDL
Schema
Listing
1 -5
Creating a Database
Dictionary
VST002.vsd

Advertisement

Table of Contents
loading

Table of Contents