HP Integrity NonStop J-Series User Manual

Page 68

Advertising
background image

DEVELOPING A DATA BASE
Creating a Data Base

If your RECORD statements for the sample data base are in an
edit-type file named "ddlsrc1," you can create a dictionary for
these record descriptions by entering the following:

DDL/IN ddlsrc1/DICT, FUP fupsrc1

This command tells the DDL compiler to:

1. Compile the source code on "ddlsrc1"

2. Open and update a data dictionary on the default volume and
subvolume

3. Create and write FUP source commands in "fupsrc1"

After you compile your DDL source code, you can use the FUP
source file produced by DDL to create your data base.

CREATING A DATA BASE

Before you execute an application, the data base file (or files)
to be used by the application must exist. To create these files,
use the FUP commands produced by the DDL compiler. This assures
that the structure and organization of a file is the same as the
structure and organization described by the corresponding record
description.

This is particularly important if you use ENABLE to generate an
application that access one of these files. An application
generated by ENABLE retains information about a file, such as the
file type, record organization, and key field location. When you
execute the application, the General Server checks to see if a
physical file matches the information retained by the
application. If a file does not match, the application displays
an error message stating:

Regenerate program: file has changed.

Figure 3-10 shows an annotated example of the FUP file-creation
commands created by the DDL compiler for the sample data base
files.

3-17

Advertising
This manual is related to the following products: