Previous Page | Next Page

SAS Component Language Dictionary

DO



Designates a group of statements to be executed as a unit
Category: Control Flow
Comparisons: SAS Statement with limitations in SCL

Syntax
Details
See Also

Syntax

DO do-clause;
END;


Details

The following forms of the do-clause are supported:

iterative DO

executes a group of statements repetitively, based on the value of an index variable. However, the form DO i=item-1, . . . , item-n is not supported.

DO UNTIL

executes a group of statements repetitively until a condition is true.

DO WHILE

executes a group of statements repetitively as long as a condition is true.

The form DO OVER is not supported.

To force the statements in a DO group to stop executing, you can use the SCL statements CONTINUE or LEAVE.

For details about the DO statement in the Base SAS language, see SAS Language Reference: Dictionary.


See Also

CONTINUE

LEAVE

Previous Page | Next Page | Top of Page