*---------*---------------*-----------------*----------------*---------------* | CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS | | | | | FIELD | | *---------*---------------*-----------------*----------------*---------------* | ORXX | Comparand | Comparand | | | *---------*---------------*-----------------*----------------*---------------*
The ORxx operation is optional with the DOUxx, DOWxx, IFxx, WHxx, and ANDxx operations. ORxx is specified immediately following a DOUxx, DOWxx, IFxx, WHxx, ANDxx or ORxx statement. Use ORxx to specify a more complex condition for the DOUxx, DOWxx, IFxx, and WHxx operations.
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 must be the same as the entry for the associated DOUxx, DOWxx, IFxx, or WHxx operation. Conditioning indicator entries (positions 9 through 17) are not allowed.
Factor 1 and factor 2 must contain a literal, a named constant, a figurative constant, a table name, an array element, a data structure name, or a field name. Factor 1 and factor 2 must be either both character data or both numeric data. The comparison of factor 1 and factor 2 follows the same rules as those given for the compare operations. See Compare Operations.
Figure "DOUxx Operations" shows an example of ORxx and ANDxx operations with a DOUxx operation.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.