HP Integrity NonStop J-Series User Manual

Page 78

Advertising
background image

SINGLE-FILE APPLICATIONS
Generating a Single-File Application

1. Start ENABLE by using the ENABLE run command in response to
the command interpreter prompt, for example:

:ENABLE

ENABLE prompts for input by displaying the percent symbol
(%). When this prompt appears, you can enter the ENABLE
commands that describe your application.

2. Describe a box by supplying a value for the RECORD attribute.
This attribute identifies the record description that ENABLE
will use to obtain information about the data base file to be
accessed. For the sample "employee-prog" application, supply
"employee" as a record description name by using the
following SET command:

SET BOX RECORD employee

When you supply a value for the RECORD attribute, ENABLE
stores this value in the attribute table. ENABLE does not
open a dictionary and obtain the record description until you
add a box. If ENABLE cannot find a record description, it
will issue an error message at that time.

3. Add a box that represents the data base file to be accessed
by the application. When you add a box to the object table,
you also provide a box name. For the sample "employee-prog"
application, add a box named "employee" with the following
ADD BOX command:

ADD BOX employee

ENABLE uses the contents of the attribute table to determine
the description of the box. The value of the DATAFILE
attribute identifies the data base file that a box
represents. If you have not supplied a value for DATAFILE,
ENABLE uses the file name contained in the record description
as the default value of this attribute. For the sample
"employee-prog" application, ENABLE uses "employee" as the
file name.

4. Supply a value for the TREE attrtribute. When you add an
application, ENABLE uses the value of the TREE attribute to
associate a box with the application. For the sample
"employee-prog" application, you associate a box named
"employee" with an application by using the following SET
command:

SET APPL TREE (01 employee)

4-5

Advertising
This manual is related to the following products: