Referencing SAS Files

Two-Level Names

To reference a permanent SAS data set in your SAS programs, you use a two-level name consisting of the library name and the filename, or data set name:
libref.filename
In the two-level name, libref is the name of the SAS data library that contains the file, and filename is the name of the file, or data set. A period separates the libref and filename.
Two-Level SAS Name
Two-Level SAS Name
For example, suppose we want to create a new permanent sas library named Clinic. In our sample program, Clinic.Admit is the two-level name for the SAS data set Admit, which is stored in the library named Clinic. Notice that the LIBNAME ...

Get SAS Certification Prep Guide: Base Programming for SAS 9, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.