You can use the LIBNAME
statement to assign librefs and engines to one or more directories,
including the Work directory.
If you have SAS data
sets located in multiple directories, you can treat these directories
as a single SAS library by specifying a single libref and concatenating
the directory locations, as in the following example:
libname income ('/u/2011/revenue', '/u/2011/costs');
This statement indicates that the two directories,
/u/2011/revenue
and
/u/2011/costs
, are to be treated as a single SAS library.
If you have already
assigned librefs to your SAS libraries, you can use these librefs
to indicate that you want to concatenate the libraries, as in this
example:
libname income ('/u/2011/corpsale', '/u/2011/retail');
libname costs ('/u/2011/salaries', '/u/2011/expenses');
libname profits (income, costs, '/u/2011/capgain');
This statement indicates that the five directories,
/u/2011/corpsale
,
/u/2011/retail
,
/u/2011/salaries
,
/u/2011/expenses
, and
/u/2011/capgain
, are to be treated as a single SAS library.