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

4- 12
Figure 4-6. Using DSPLY to Update the M-SOURCE Data Set (Continued)
Comments
1 This line prompts the user to enter a source code. It then
reads that source code into the field, SRCCDO.
2 This line displays the third element of the array, CRT. This
element is a heading line for the source description.
3 This line displays the source description (SRCDS) retrieved from
the M-SOURCE data set.
4 This line displays the second element in the array, CRT. This
element prompts the user to enter a new description. Then the
new description is saved in the field, SRCDSO.
5 This line displays the fourth element in the array, CRT. This
element acknowledges that the M-SOURCE record is updated.
Using Function Keys
This section explains how to use function keys ( F1 through F8 ) in an
RPG program. It discusses how to sense them when they are pressed on the
keyboard. If you want to display labels for the function keys, see the
next section titled "Displaying Function Key Labels."
The Calculation Specifications shown in Figure 4-7 use F8 to end a
program. This function key is activated at the beginning of the
Calculation Specifications section. When the user presses it, the LR
indicator is turned on and the program ends. (See Figure 4-12 for the
listing of an entire program that uses function keys.)