You can assign the USER libref using one of the following methods:
-
-
-
-
operating environment command
In this example, the
LIBNAME statement is used with a DATA step, which stores the data
set REGION in a permanent SAS library.
libname user 'SAS-library';
data region;
… more DATA step statements …
run;
In this example, the
LIBNAME function assigns the USER libref:
data _null_;
x=libname ('user', 'SAS-library');
run;
When assigning a libref
using the USER= system option, you must first assign a libref to a
SAS library, and then use the USER= system option to specify that
library as the default for one-level names. In this example, the DATA
step stores the data set PROCHLOR in the SAS library TESTLIB.
libname testlib 'SAS-library';
options user=testlib;
data prochlor;
… more DATA step statements …
run;
Operating Environment Information: The methods and results of assigning the USER libref vary slightly
from one operating environment to another. See the SAS documentation
for your operating environment for more information.