Exercise - Using the IF…THEN…ELSE Instruction

About this task

Write the REXX instructions for the following flowchart:
dfhrx002
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

Task Task

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrx00041.html