If you do not instruct
it to do otherwise, SAS writes all variables and all observations
from input data sets to output data sets. You can, however, control
which variables and observations you want to read and write by using
SAS statements, data set options, and functions. The statements and
data set options that you can use are listed in the following table.
Statements and Options That Control Reading and Writing
Use statements or data
set options (such as KEEP= and DROP=) to control the variables and
observations that you want to write to the output data set. The WHERE
statement is an exception: it controls which observations are read
into the program data vector based on the value of a variable. You
can use data set options (including WHERE=) on input or output data
sets, depending on their function and what you want to control. You
can also use SAS system options to control your data.