The DO statement begins a sequence of statements to be executed in a group, called a DO-group. Its general form is:
DO; . . . END;
For example:
IF B < C THEN DO;
PUT LIST ('ADDED DATA REQUIRED');
GET LIST (VALUE);
B = B + VALUE;
END;
In this example, the PUT LIST, GET LIST, and assignment statements execute if B < C.
DO statements can contain IF statements, other DO-groups, RETURN statements, or GOTO statements that alter the order of execution.