Chapter 24
SAS Libraries
Definition of a SAS Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 575
Library Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
Library Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
Physical Names and Logical Names (Librefs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 577
Assigning Librefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
Associating and Clearing Logical Names (Librefs) with the
LIBNAME Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 578
Reserved Librefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
Accessing Remote SAS Libraries on SAS/CONNECT, SAS/
SHARE, and WebDAV Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 579
Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580
Definition of Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 580
How SAS Concatenates Library Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
Rules for Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 581
Permanent and Temporary Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 582
Definition of a Metadata-Bound Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
SAS System Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Introduction to SAS System Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
Work Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 583
User Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 584
Sashelp Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Sasuser Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Sequential Data Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Tools for Managing Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
SAS Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 586
Library Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Accessing Permanent SAS Files without a Libref . . . . . . . . . . . . . . . . . . . . . . . . . 587
Operating Environment Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Definition of a SAS Library
The logical concept of a SAS library remains constant, regardless of the operating
environment. In any operating environment where SAS can be installed, the structure for
organizing, locating, and managing SAS files is the same.
575