RPG/400 Help

Positions 54-59 (Resulting Indicators)

These positions can be used, for example, to test the value of a result field after the completion of an operation, or to indicate an end-of-file, error, or record-not-found condition. The resulting indicator positions have different uses, depending on the operation code specified. See the individual operation codes in Operation Codes for a description of the associated resulting indicators. For arithmetic operations, the result field is tested only after the field is truncated and half-adjustment is done (if specified). The setting of indicators depends on the results of the tests specified.

Entry
Explanation
Blank
No resulting indicator specified
01-99
General indicators
KA-KN, KP-KY
Function key indicators
H1-H9
Halt indicators
L1-L9
Control level indicators
LR
Last record indicator
OA-OG, OV
Overflow indicators
U1-U8
External indicators
RT
Return indicator.

Resulting indicators cannot be used when the result field uses a non-indexed array.

If the same indicator is used as a resulting indicator on more than one calculation specification, the last calculation specification processed determines the status of that indicator.

Remember the following points when specifying resulting indicators:


[ Top of Page | Previous Page | Next Page | Table of Contents ]