Subsetting Data
As you read your
data, you can subset it by processing only those observations that
meet a specified condition. To do this, you can use a subsetting IF
statement in any DATA step.
Using a Subsetting IF Statement
The subsetting IF statement causes the DATA step to
continue processing only those observations that meet the condition
of the expression specified in the IF statement. The resulting SAS
data set or data sets contain a subset of the original external file
or SAS data set.
Syntax, subsetting IF
statement:
expression is
any valid SAS expression.
-
If the expression is true, the
DATA step continues to process that observation.
-
If the expression is false, no further statements are processed ... |