Exercise - Using the IF...THEN...ELSE Instruction
Write the REXX instructions for the following flowchart:
ANSWER
IFa=0THEN
IFc=2THEN
z=1
ELSE NOP
ELSE
IFz=2THEN
IFc=3THEN
a=1
ELSE
a=3
ELSE NOP
A=0
A=3
A=1
Z=1
Z=2
C=3
C=2
Tr ueFalse
Tr ueFalse
Tr ueFalse
Tr ueFalse
Control Flow within a Program
36
CICS TS for VSE/ESA: REXX Guide