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

3- 39
Figure 3-26. Reading a TurboIMAGE Data Set Sequentially by Key (Continued)
Comments
1 This line defines the TurboIMAGE data set file, DACCOUNT.
Columns 28-38 indicate that DACCOUNT is a TurboIMAGE file to be
processed randomly by the NAME-LAST key field (positions 19-34).
2 This line specifies that DACCOUNT is part of the MARKET
database.
Columns 54-65 identify MARKET as the TurboIMAGE database that is
used.
Column 66 is 6 to indicate Open Mode 6 - Shared Read Access.
Column 67 is C to indicate Input/Output Mode C - Chained
Sequential Read. In this mode, records are read sequentially
along the data set chain.
3 This line defines the password for the database.
Columns 54-65 contain LEVEL READER to specify the password,
READER. This password establishes a user class identification
that permits read access to the database.
4 This line identifies the key field for the data set.
Columns 54-65 contain ITEM NAME-LAST to identify the key field,
NAME-LAST.
5 This line identifies the data set to be used.
Columns 54-65 contain DSNAMED-ACCOUNTS to identify the data set,
D-ACCOUNTS.
6 This line begins the input record description for the DACCOUNT
file.
7 This line establishes the head of the chain in the D-ACCOUNTS
data set.
Columns 18-27 contain BLK16 to reset the file pointer to the
head of the chain.