![]() Chapter Contents |
![]() Previous |
![]() Next |
| LIBNAME |
| Valid: | anywhere in a SAS program |
| Windows specifics: | Valid values for engine; specifications for SAS-data-library |
| Syntax | |
| Details | |
| Associating Librefs | |
| Listing Data Library Attributes | |
| See Also | |
Syntax |
| LIBNAME libref <engine> 'SAS-data-library' <LONGFILEEXT | SHORTFILEEXT>; |
| LIBNAME libref <engine> ('SAS-data-library-1' <,...'SAS-data-library-n'> ) <LONGFILEEXT | SHORTFILEEXT> ; |
| LIBNAME libref _ALL_ LIST; |
| LIBNAME libref _ALL_ CLEAR; |
For more information about these engines, see Multiple Engine Architecture and the discussion of engines in SAS Language Reference: Dictionary.
| Details |
The LIBNAME statement associates a libref with a permanent SAS data library. It also can be used to list the file attributes of a SAS data library. (The LIBNAME statement is also used to clear a libref. For more information, see Clearing Librefs.)
Syntax |
| LIBNAME libref <engine> 'SAS-data-library' |
| LIBNAME libref <engine> (SAS-data-library-1<,...'SAS-data-library-n')>; |
You can use the same arguments with these
forms of the LIBNAME statement as shown in Syntax.
With the LIST option, you can use the LIBNAME statement to list attributes of SAS data libraries. Data Library Attributes Listed by the LIBNAME Statement shows the results of the following LIBNAME statement:
libname sashelp list;
Data Library Attributes Listed by the LIBNAME Statement
5 libname sashelp list;
NOTE: Libref= SASHELP
Scope= Kernel
Levels= 3
-Level 1-
Engine= V7
Physical Name= d:\Sas\graph\sashelp
File Name= d:\Sas\graph\sashelp
-Level 2-
Engine= V7
Physical Name= d:\Sas\base\sashelp
File Name= d:\Sas\base\sashelp
-Level 3-
Engine= V7
Physical Name= d:\Sas\core\sashelp
File Name= d:\Sas\core\sashelp |
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.