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

3-: 10
Supplying Partial Key Values
Figure 3-8 shows how to read all records in a KSAM file having a range of
key values. All records in the KSAM file, MASTFL, are read that have
last names starting with a specific character (for example "A"). A user
at a terminal enters the letter and the program reads the first record in
alphabetical sequence that starts with the letter. When there are no
more records in the file, the user is prompted to enter another letter.
The KSAM file, MASTFL, is created using the KSAMUTIL commands shown at
the beginning of this section.
Figure 3-8. Reading a KSAM File Sequentially Within Key Limits - Supplying
Partial Key Values
Comments
1 This line defines the KSAM file, MASTFL.