*---------*---------------*-----------------*----------------*---------------* | CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS | | | | | FIELD | | *---------*---------------*-----------------*----------------*---------------* | ELSE | | | | | *---------*---------------*-----------------*----------------*---------------*
The ELSE operation is an optional part of the IFxx operation. If the IFxx comparison is met, the calculations before ELSE are processed; otherwise, the calculations after ELSE are processed.
Within total calculations, the control level entry (positions 7 and 8) can be blank or can contain an L1 through L9 indicator, an LR indicator, or an L0 entry to group the statement within the appropriate section of the program. The control level entry is for documentation purposes only. Conditioning indicator entries (positions 9 through 17) are not permitted.
To close the IFxx/ELSE group use an ENDIF operation.
Figure "IFxx/ENDIF and IFxx/ELSE/ENDIF Operations" shows an example of an ELSE operation with an IFxx operation.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.