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

3-: 46
Figure 3-30. Deleting Records from a TurboIMAGE Data Set
Comments
1 This line defines the file, INPUT.
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.
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 S to indicate Open Mode S - Data Set Locking for
Duration.
Column 67 is 5 to specify Input/Output Mode 5 - Chained Read.
4 This line defines the password to 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
set is D-ACCOUNTS.
7 This line begins the input record description of the INPUT file.