Simple DO Statement

Description

The simple DO statement causes the statements in the DO-group to be executed one time only. Control may be transferred into a simple DO-group by a GOTO statement, but this should be avoided in structured programming.

Example

IF C < D THEN DO;
   PUT LIST ('More data needed'); 
   GET LIST (VALUE);
   C = C + VALUE;
   END;