RPG – DOW

DOW (do while) is used for loops with conditions that defines for how long the loop should continue.
ENDDO or END is used to define the end of the group of operations within the loop.

The condition is evaluated BEFORE a run in the loop. That means it will evaluate if it should run the first time or not. Potentially resulting in
no processing of the loop depending on the condition.

Example

Example RPGIV Free Format