I read this in the TSO/E Rexx manual:
I am not very clear on the WHILE. It describes the an UNTIL phrase well but not for the WHILE phrase. The WHILE condition is evaluated before or after the control variable has been stepped? Can you please guide me?3.4.3 Conditional phrases (WHILE and UNTIL)
.
.
For a WHILE loop, the condition is evaluated at the top of the group of instructions. For an UNTIL loop, the condition is evaluated at the bottom--before the control variable has been stepped.