When there are members of the same
name in more than one library, the first occurrence of the member
is used for input and update processes. Output always goes to the
first library.
This example contains
three SAS libraries, and each library contains two SAS data files:
The LIBNAME statement
concatenates LIB1, LIB2, and LIB3:
libname fruit (lib1 lib2 lib3);
The concatenated library
FRUIT has the following members:
Note: Output always goes to the
first library. For example, the following statement writes to the
first library in the concatenation, LIB1:
data fruit.oranges;
Note that in this example,
if the file APPLES in LIB1 was different from the file APPLES in LIB2,
and if an update to APPLES was specified, it is updated only in LIB1
because that is the first occurrence of the member APPLES.
For complete documentation
on library concatenation, see the
LIBNAME Statement in SAS Statements: Reference.
Operating Environment Information: For more information about how specific operating environments handle
concatenation, see the SAS documentation for your operating environment.