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

4-: 49
Figure 4-23. Program to Update D-ACCOUNTS Using VPLUS (Continued)
Comments
1 This line defines the terminal as a WORKSTN file and enables the
function keys.
2 This line identifies the VPLUS forms file, FACCOUNT, that is
used.
3 This line associates event code 09 with the input record
indicator 09. Event code 09 reports edit errors to the program.
4 This line describes the field, NUMBER, which contains the edit
error count.
5 This line begins the description of the record that handles all
terminal input except edit error counts (line 4).
6 This line executes the ADD subroutine when the user presses F1
.
7 This subroutine checks to see if the user pressed a valid
function key ( F1 , F2 , F3 , F5 or F8 ).