Chapter 26
SAS Libraries
Definition of a SAS Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 585
Library Engines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Library Names . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Physical Names and Logical Names (Librefs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 587
Assigning Librefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Associating and Clearing Logical Names (Librefs) with the
LIBNAME Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 588
Reserved Librefs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
Accessing Remote SAS Libraries on SAS/CONNECT, SAS/
SHARE, and WebDAV Servers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 589
Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
Definition of Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 590
How SAS Concatenates Library Members . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
Rules for Library Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 591
Permanent and Temporary Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 592
Definition of a Metadata-Bound Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
SAS System Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
Introduction to SAS System Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
Work Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593
User Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 594
Sashelp Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Sasuser Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 595
Sequential Data Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
Tools for Managing Libraries . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
SAS Utilities . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 596
Library Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 597
Accessing Permanent SAS Files without a Libref . . . . . . . . . . . . . . . . . . . . . . . . . 597
Operating Environment Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 598
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.
585

Get SAS 9.4 Language Reference, 6th 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.