Exercise - using the if...then...else instruction – IBM SC34-5764-01 User Manual
Page 58
Advertising
Exercise - Using the IF...THEN...ELSE Instruction
Write the REXX instructions for the following flowchart:
ANSWER
IF a = 0 THEN
IF c = 2 THEN
z = 1
ELSE NOP
ELSE
IF z = 2 THEN
IF c = 3 THEN
a = 1
ELSE
a = 3
ELSE NOP
A=0
A=3
A=1
Z=1
Z=2
C=3
C=2
True
False
True
False
True
False
True
False
Control Flow within a Program
36
CICS TS for VSE/ESA: REXX Guide
Advertising