HP RPG/XL Programmer's Guide (30318-90001)
3- 33
Creating a TurboIMAGE Root File. Once you define a TurboIMAGE schema,
you then create a TurboIMAGE root file.
For example, to create the root file for our sample MARKET database,
enter these commands at the operating system colon prompt:
:FILE DBTEXT=MARKET.PUB
:FILE DBSLIST=$STDLIST
:RUN DBSCHEMA.PUB.SYS;PARM=3
If there are any schema or execution errors, they are displayed next.
When the root file is successfully created, you see the message END OF
PROGRAM.
NOTE Instead of equating DBSLIST to $STDLIST in the file equation, you
can assign it to other devices. For example, $NULL or DEV=LP.
Running DBUTIL. After creating a TurboIMAGE root file, you create an
empty database.
For example, to create an empty database for our sample MARKET database,
enter these commands:
:RUN DBUTIL.PUB.SYS
>>CREATE MARKET
>>EXIT
When an empty database is created successfully, you see the message data
base MARKET has been created.
CAUTION Enter the CREATE command carefully. DBUTIL commands perform
many functions, one of which purges databases.
Loading Data into a TurboIMAGE Database. You can use an RPG program to
load data into a TurboIMAGE database. You do this by entering
TurboIMAGE-specific fields in the File Description and File Description
Continuation Specifications.
The program in Figure 3-24 shows how to load the D-ACCOUNTS data set (see
our sample MARKET database in Figure 3-23) with data from an MPE file,
ACCTSIN. Records in ACCTSIN are sorted by account number (ACTNO).