![]() Chapter Contents |
![]() Previous |
![]() Next |
| LIBNAME |
| Valid: | anywhere |
| OS/390 specifics: | libref, engine, physical-filename, engine/host-options |
| Syntax | |
| Details | |
| Assigning Librefs | |
| See Also | |
Syntax |
| LIBNAME libref <engine > <'physical-filename'> <engine/host-options>; |
| LIBNAME libref <engine> <('physical-filename-1', ..., 'physical-filename-n')> |
| LIBNAME libref | _ALL_ CLEAR; |
| LIBNAME libref | _ALL_ LIST; |
| Details |
The LIBNAME statement assigns a libref to a SAS data library. The LIBNAME function provides similar functionality. See LIBNAME.
Note:
The LIBNAME statement is also used to
list the attributes of a SAS data library
and to clear a libref. For more information, see Listing Your Current Librefsand Deallocating SAS Data Libraries
.
| LIBNAME libref <engine > <'physical-filename'> <engine/host-options>; |
libname abc v6 '&mytemp' disp=new;
You can use the following arguments with this form of the LIBNAME statement:
Note:
Unlike filerefs, librefs cannot include the national
characters $, @, and #. ![[cautend]](../common/images/cautend.gif)
If you do not specify an engine, then SAS attempts to assign an engine according to the rules described in How SAS Assigns an Engine When No Engine Is Specified . See the discussion of engines in SAS Language Reference: Dictionary for more information about the library engines.
'myid.raw.datax'
'/u/userid/mylib'or
'HFS:mylib'The HFS prefix needed when the directory does not contain a "/" to indicate an HFS file. This information can also be provided by default by setting the FILESYSTEM= system option. For information on the FILESYSTEM= system option, see FILESYSTEM=.
See Specifying Physical Files for more information about partially qualified data set names.
| keyword=value | keyword |
When you specify more than one option, use a blank space to separate each option. The specific options that are available depend on which engine you have specified. See Engine/Host Options for the V7 Engine for details about specific engine/host-options, and about the values that you specify with the various engines.
The complete list of options is presented here:
| NEW | a new data set is to be created. |
| OLD | the data set exists and is not to be shared. |
| SHR | the data set exists and may be shared. |
The LABEL= option is identical to the JCL LABEL= parameter. Here is a simple example:
label=(3,SL,,,EXPDT=1998/123)
| CONTIG | means that the space to be allocated must be contiguous. |
| MXIG | means that the maximum contiguous space is required. |
| ALX | means that different areas of contiguous space are needed. |
SPACE=(FILEUNIT,(FILESPPRI,FILESPSEC))
The default specifications are as follows:
SPACE=(CYL,(1,1))
| See Also |
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.