HP RPG/XL Programmer's Guide (30318-90001)

3- 35
.
Figure 3-24. Loading a TurboIMAGE Database (Continued)
Comments
1 This line defines the accounts file, ACCTSIN.
2 This line defines the TurboIMAGE data set file, DACCOUNT.
Column 31 is A to indicate that DACCOUNT has an alphanumeric
key.
Column 32 contains M to indicate that DACCOUNT is a TurboIMAGE
file.
3 This line specifies that DACCOUNT is part of the MARKET
database.
Column 53 is K to indicate that this line is a Continuation
line.
Columns 54-65 identify MARKET as the TurboIMAGE database that is
used.
Column 66 is 3 to specify Open Mode - Exclusive Access.
Column 67 is blank to specify Input/Output Mode - Write, Output
File.
4 This line establishes write access to the database.
Column 53 is K to indicate that this is a Continuation line.
Columns 54-65 contain LEVEL WRITER to specify the write-access
password for the database.
5 This line identifies the key field for the data set.
Column 53 is K to indicate that this is a Continuation line.
Columns 54-65 contain DSNAMED-ACCOUNTS to identify the data set,
D-ACCOUNTS to be accessed (this line is not needed when line 2
contains the actual data set name).
6 This line begins the description of the ACCTSIN input record.
7 This line begins the description of the DACCOUNT output record.
Reading a TurboIMAGE Data Set
You can access data in a TurboIMAGE data set three different ways and
each of these is discussed in the sections which follow: