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

3-: 44
Figure 3-29. Randomly Adding Records to a TurboIMAGE Data Set
Comments
1 This line defines the IDACCT file.
2 This line defines the TurboIMAGE data set file, DACCOUNT.
Column 15 is U to indicate that DACCOUNT is updated.
Column 16 is C for chained (random) access.
Column 66 is A to indicate that records are added to DACCOUNT.
3 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 9 to indicate Open Mode 9 - Data Set Locking per
Record.
Column 67 is 5 to specify Input/Output Mode 5 - Chained Read.
4 This line defines the password for the database.
Columns 54-65 contain LEVEL WRITER to specify the password,
WRITER. This password establishes a user class identification
that permits write access to the database.
5 This line identifies the key field for the data set.
Columns 54-65 contain ITEM ACCOUNT-NO to specify that the key
for the data set is ACCOUNT-NO.
6 This line names the data set to be accessed.
Columns 54-65 contain DSNAMED-ACCOUNTS to specify that the data