RPG – DOU

DOU (do until) is used for loops that should run until its conditions are meet.
ENDDO or END is used to define the end of the group of operations within the loop.

The condition is evaluated AFTER a run in the loop. That means it will always perform at least one iteration,
regardless if the conditions is met or not.

Example

Example RPGIV Fixed Format