List Observations

You can list variables and observations in a SAS data set by using the LIST statement. The general form of the LIST statement is as follows:

LIST <range> <VAR operand> <WHERE(expression)> ;

where

range

specifies a range of observations. For details, see the section Process a Range of Observations.

operand

selects a set of variables. For details about the VAR clause, see the section Select Variables with the VAR Clause.

expression

is an expression that is evaluated as being true or false. For details about the WHERE clause, see the section Process Data by Using the WHERE Clause.

The next three sections discuss how to use each of these clauses with the Sashelp.Class data set.