Micropattern to condition the processing according to a variable
The CO (CASE OF) micropattern can be inserted in the code of a Macro only. It can be used to test a variable, which corresponds to the value of a Data Element, in the dependent lower-level subfunctions of the Macro.
Input format
You must conform to the following input format:
*!CO "OPERAND1"
where:- *! is the required start tag of the micropattern. The * must be entered in column 7, reserved for the comments in the COBOL code, and the ! must be entered in column 8.
- CO is the micropattern identifier.
- " " must frame the operands.
- OPERAND1 is the Data Element whose value is tested.
All the explanations about the insertion of the CO loop and its possible transformation into the EVALUATE COBOL statement can be found in Particular cases of the DO and CO loops.