SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3

%LIST Statement

Displays lines that are entered in the current session

Valid: anywhere

Category: Program Control

Syntax

%LIST < n <: m “ m >>;

Without Arguments

In interactive line mode processing, if you use the %LIST statement without arguments, it displays all previously entered program lines.

Arguments

n

n “m

Details

Where and When to Use The %LIST statement can be used anywhere in a SAS job except between a DATALINES or DATALINES4 statement and the matching semicolon (;) or semicolons (;;;;). This statement is useful mainly in interactive line mode sessions to display SAS program code on the monitor. It is also useful to determine lines to include when you use the %INCLUDE statement.

Interactions

CAUTION:

Examples

This %LIST statement displays lines 10 through 20:

%list 10-20;

See Also

Statement:

System Option:

Категории