Stop Moving Files: How to Map Multiple Folders to a Single SAS Library

This code is also available in: Deutsch Español Français
Difficulty Level
Beginner
Published on :
This SAS© feature allows logically grouping multiple SAS© libraries under a single libref. Concatenation can include a combination of already assigned librefs and physical paths. Libraries are searched in the order of their declaration for read or update operations. The creation of new datasets always occurs in the first listed library. The attributes of the first library determine those of the concatenated set. Rules include that options and engines apply only to libraries specified by a physical path, the non-assignment of a libref modification to the concatenation, the concatenation of catalogs, sequential processing if a library is sequential, and considering the first occurrence of a file for operations and display.
Data Analysis

Type : N/A


Examples use references to logical libraries and a physical path, without explicit data creation in the provided code.

1 Code Block
LIBNAME
Explanation :
This example concatenates three libraries: 'quarter1', 'quarter2' (pre-existing librefs) and a library located at the physical path '/quarter3/sales'. All are referenced under the new libref 'year'. Data will be searched in this order and created in 'quarter1'.
Copied!
1LIBNAME year (quarter1 quarter2 '/quarter3/sales');
2 
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
Copyright Info : Copyright © SAS Institute Inc. All Rights Reserved


Related Documentation

Aucune documentation spécifique pour cette catégorie.