You can group a collection of ACS language statements using a DO statement paired with an END statement. The DO statement can follow an IF-THEN clause, an ELSE clause, or a SELECT-WHEN group.
DO <group of statements> END
group of statements can consist of zero or more ACS language statements.
Figure 1 shows an example of a DO statement:
IF &HLQ='PAYROLL' THEN
DO
WRITE 'No Payroll allowed'
EXIT CODE(1)
END