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

1-3
RPG Indicators
RPG turns indicators on and off during the RPG logic cycle to indicate
that certain processing events have occurred. You can use the settings
of the indicators to select the specifications to perform in your
program. For instance, control fields trigger total operations such as
printing total lines on a report. To define a control field, you assign
a control-level indicator (L1-L9) to it on the Input Specification. When
this input field changes, RPG turns on the control-level indicator.
Then, at the proper time in the logic cycle, RPG performs those
specifications conditioned by the indicator you selected. Figure 1-2
shows how control-level indicators fit into the RPG logic cycle.
Figure 1-2. Control-Level Indicators and Total/Detail Processing
The control-level indicators, as well as the other RPG indicators, are
described below. The last section in this chapter titled "More About the
RPG Logic Cycle" explains when these indicators are turned on and off and
how they are used in the logic cycle. The RPG indicators are:
Indicator Description
Command Key (KA-KN, Lets you control read and write operations on
KP-KY) the terminal when using RSI terminal files.