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

4- 18
Columns 43-48 contain the name of the field, MMDDYY, where the
user-entered date is stored.
3 This line displays message 10:1 from the User Message Catalog.
Columns 18-27 identify the message (10:1) in the User Message
Catalog file. (See line 1 for an explanation of the message
identification.)
Columns 28-32 contain DSPLM to specify that the data to be
displayed on the terminal comes from the User Message Catalog
file.
A Sample Program Using Message Files. Figure 4-12 lists a program that
uses the User Message Catalog file created in Figure 4-10. This message
file contains user prompts and informational messages.
The program updates the TurboIMAGE data set, M-SOURCE. (see the schema
for this data set in Figure 3-21). The program gets a source code
(SRCCDO) from the terminal user, then reads the corresponding record in
M-SOURCE. If the record exists, the source description field is updated.
If the record does not exist, a new record is added for that source code.
Users delete records by pressing F2 and end the program by pressing F8
. (After entering data or pressing a function key, users must press
RETURN .)