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

4- 8
are updated in M-SOURCE. Records are updated when indicator 01
is turned on and indicator 60 is not turned on.
11 This line begins the output record description for displaying
the source description. This record is displayed when an EXCPT
CRTMSG calculation is executed and indicator 81 is turned on.
12 This line begins the output record description for prompting the
user to enter data. This record is displayed when an EXCPT
CRTMSG calculation is executed.
Running the Sample Program
Figure 4-4 shows what a terminal dialogue might look like when the sample
program in Figure 4-3 is executed. A user at a terminal is updating
source codes 111A and 112A. Two updates are required for source code 112A
because the user made a mistake on the first try. The lines that the
user enters are shaded.
Figure 4-4. Running the M-SOURCE Update Program
Using DSPLY and DSPLM. The Calculation Specification operations, DSPLY
and DSPLM, are alternative ways to read and display data using the
terminal. They have two advantages over READ/EXCPT (see the section
titled "Using READ and EXCPT"). First, numeric input data is stored
right justified and zero-filled; users do not have to enter leading zeros
for these fields. Second, one operation (either DSPLY or DSPLM) is used
for both reading and displaying data.
DSPLY and DSPLM are used the same way except for the Factor 1 Field. For
DSPLY,