Chapter Summary

Text Summary

Referencing SAS Files in SAS Libraries

To reference a SAS file, you assign a libref (library reference) to the SAS library in which the file is stored. Then you use the libref as the first part of the two-level name (libref.filename) for the file. To assign a libref, you can submit a LIBNAME statement. You can store the LIBNAME statement with any SAS program to assign the libref automatically when you submit the program. The LIBNAME statement assigns the libref for the current SAS session only. You must assign a libref each time you begin a SAS session in order to access SAS files that are stored in a permanent SAS library other than clinic. (Work is the default libref for a temporary SAS library.)
You can also ...

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.