IBM SC34-5764-01 Manual page 58

Cics transaction server for vse/esa
Table of Contents

Advertisement

Control Flow within a Program
Exercise - Using the IF...THEN...ELSE Instruction
Write the REXX instructions for the following flowchart:
False
False
Z=2
False
A=3
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
36
CICS TS for VSE/ESA: REXX Guide
A=0
True
True
C=3
A=1
True
False
True
C=2
Z=1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rexx

Table of Contents