Positions 71-76 (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 conditions like end-of-file, error, or record-not-found. For some operations, you can control the way the operation is performed by specifying different combinations of the three resulting indicators (for example, LOOKUP). The resulting indicator positions have different uses, depending on the operation code specified. See the individual operation codes in Chapter 22. 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 most recent specification processed determines the status of that indicator.

Remember the following points when specifying resulting indicators:



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