If you are using SAS
Studio or SAS University Edition, you might not have Write access
to the Sasuser directory where the sample data is stored.
Note: If you are using the SAS
windowing environment or SAS Enterprise Guide, you can skip this section.
Submit the following
code:
proc options option=rsasuser;
run;
If the result from the
OPTIONS procedure code is NORSASUSER, the Sasuser folder is writable.
If the result from the
PROC OPTIONS code is RSASUSER, the Sasuser folder is Read only, and
you must redirect the Sasuser folder by using a LIBNAME statement.
To set up practice data:
-
In the Folders pane,
select My Folders. Then, right-click and
select New>Folder.
-
In the Name box,
enter a folder name. This example uses the name certprep
.
Click Save.
-
Redirect your SASUSER
library to the new folder as follows:
If you are using SAS
University Edition, submit a LIBNAME statement by copying the following
code into the Code tab:
libname sasuser "/folders/myfolders/certprep";
Note: You must use the filename
of the new directory. These examples use the name certprep
.
If you use another filename, substitute the name that you created.
If you are using SAS
Studio, do the following:
-
Right-click the new
folder that you created and select Properties.
-
Copy the path in the Location field.
-
Enter the following
code, replacing location field with
the path that you copied from the Location field.
libname sasuser "location field";
-
-
Save the program as
libname_cert.sas. You must resubmit this LIBNAME statement program
every time you work with the sample data.
-
-
Now that the sample
data is stored in a permanent directory, reissue the LIBNAME statement
whenever you want to use the data.