*---------*---------------*-----------------*----------------*---------------* | CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS | | | | | FIELD | | *---------*---------------*-----------------*----------------*---------------* | OTHER | | | | | *---------*---------------*-----------------*----------------*---------------*
The OTHER operation begins the sequence of operations to be processed if no WHxx condition is satisfied in a SELEC group. The sequence ends with the ENDSL or END operation.
Rules to remember when using the OTHER operation:
Figure "OTHER Operation" shows an example of the OTHER operation.
*...1....+....2....+....3....+....4....+....5....+....6....+....7... CL0N01N02N03Factor1+++OpcdeFactor2+++ResultLenDHHiLoEqComments++++++ C* C* Example of a SELEC group with WHxx and OTHER. If X equals 1, C* do the operations in sequence 1; if X does not equal 1 and Y C* equals 2, do the operations in sequence 2. If neither C* condition is true, do the operations in sequence 3. C* C SELEC C X WHEQ 1 C : seq 1 C Y WHEQ 2 C : seq 2 C OTHER C : seq 3 C ENDSL
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.