z/OS TSO/E REXX User's Guide
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


Exercise - Using the IF/THEN/ELSE Instruction

z/OS TSO/E REXX User's Guide
SA32-0982-00

Write the REXX instructions for the following flowchart:

IKJC3002

ANSWER

Possible Solution

IF A = 0 THEN
   IF C = 2 THEN
      B = 1
   ELSE NOP
ELSE
   IF B = 2 THEN
     IF C = 3 THEN
        A = 1
     ELSE
        A = 3
   ELSE NOP

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014