Sample Topic 2: Library

h

Hey there! Looks like you have not set up the training properly 🙂

This training web page is designed to be open side-by-side with your SAS program.

Please see the instruction on how to set up the training.

Permanent Library

Permanent libraries contain permanent data sets.

​The SASHelp, SASUser and Webwork libraries are all built-in permanent libraries:


Permanent Data Sets

Now, expand the SASHelp library.

SASHelp library contains many built-in permanent data sets.


Referencing Permanent Data Sets

When referencing a permanent data set, the library reference (libref) must be used.

Example

Data vehicle;
Set SASHelp.cars;
Run;

In this example, the data is read from the permanent SASHelp library and written into the temporary VEHICLE data set.

The libref (SASHelp) is used when referencing the CARS data set in the SASHelp library.

In the next section, you will learn how to create your own permanent data set.

✍️ Exam Tips

Without the library reference, the data set is stored in the Work library.

? Sample Exam Question(s):

Question 1

Get Solution