Chapter Contents

Previous

Next
SAS Companion for the CMS Environment

Concatenating SAS Data Libraries

The LIBNAME statement and the SASHELP=, USER=, and MAPS= system options can be specified with a concatenated series of multiple SAS data libraries. SAS accesses a concatenated library as an ordered series of individual libraries. The libraries in a concatenation can use different engines and can physically exist in any storage system (CMS, SFS directory, minidisk, MACLIB, etc.).

The syntax for specifying a concatenated SAS data library is as follows:

('filetype-1 <filemode-1 | SFS-directory-1>', . . .'filetype-n <filemode-n | SFS-directory-n>')


Examples

libname mylib ('mylib a' 'mylib pool:.mysaslib');
libname twolibs ('first a' 'second a');

In the second example, the SAS data libraries FIRST and SECOND appear to SAS as a single library when the libref TWOLIBS is referenced. SAS searches for input members using the A disk, with the filetype FIRST searched first. If the member is not found in FIRST, SAS searches the filetype SECOND. New members receive the filetype FIRST on the A disk.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.