Previous PageNext Page

Using a permanent SAS data set In the Data step
You can also refer to a permanent data set in the data step. The following job:

LIBNAME Library '/bios524/classlib';
Data All;
 Set Library.Survey1;
Run;

includes the following note in the SAS log:

NOTE: The data set WORK.ALL has 3 observations and 5 variables.

This job creates the temporary data set ALL from the permanent data set Library.Survey1.
The SET statement is used to read a SAS data set into the data step.

SET statement (data step only)
SET libref.fileref;

The SET statement is similar to the INPUT statement; both read data and are used in Data step processing but:

Previous PageTable Of ContentsNext Page