Previous Page | Next Page

Controlling Program Flow

Using the SCL CONTROL Statement

The CONTROL statement enables you to specify options that control the execution of labeled sections, the formatting of submit blocks, and whether an error in dot notation causes a program halt.

CONTROL options;
You can specify the following options with the CONTROL statement:
ALLCMDS|NOALLCMDS

determines whether SCL can intercept procedure-specific or custom commands that are issued in the application. This option also determines if and when the MAIN section executes.

ALWAYS|NOALWAYS

determines whether the MAIN section executes if the user enters a command that SCL does not recognize.

ASIS NOASIS

determines whether SCL eliminates unnecessary spaces and line breaks before submit blocks are submitted.

BREAK label|NOBREAK

enables you to specify a labeled program section that will be executed if an interrupt or break occurs while your program is executing.

HALTONDOATTRIBUTE|NOHALTONDOTATTRIBUTE

determines whether execution halts if SCL finds an error in the dot notation that is used in your program.

ENDSAS|NOENDSAS

determines whether the TERM section executes when the user enters the ENDSAS or BYE commands.

ENDAWS|NOENDAWS

determines whether the TERM section executes when a user ends a SAS session by selecting the system closure menu in a FRAME entry that is running within the SAS application workspace.

ENTER|NOENTER

determines whether the MAIN section executes when the user presses the ENTER key or a function key without modifying a window variable.

ERROR|NOERROR

determines whether the MAIN section executes if a control or field contains a value that causes an attribute error.

LABEL|NOLABEL

determines whether the MAIN section executes before or after the window variable sections.

TERM|NOTERM

determines whether the TERM section executes even if a user does not modify any columns in the current row of the SAS table.

For more information, see CONTROL.

Previous Page | Next Page | Top of Page