Understanding the SAS/IML Language


Control Statements

The SAS/IML language has statements that control program execution. You can use control statements to direct the execution of your program and to define DO groups and modules. Some control statements are shown in the following table:

Table 3.1: Control Statements

Statement

Description

DO, END

Specifies a group of statements

Iterative DO, END

Defines an iteration loop

GOTO , LINK

Specifies the next program statement to be executed

IF-THEN/ELSE

Conditionally routes execution

PAUSE

Instructs a module to pause during execution

QUIT

Exits from the IML procedure

RESUME

Instructs a module to resume execution

RETURN

Returns from a LINK statement or module

RUN

Executes a module

START, FINISH

Defines a module

STOP , ABORT

Stops the execution of an IML program


See ChapterĀ 6: Programming Statements, for more information about control statements.