The
following figure provides a logical view of accessing a library of
SAS data sets.
After you have installed
the required SAS software, you need to set up a connection from a
SAS server to a SAS data set. This connection requires that you register
the Base SAS library with the SAS Metadata Server. In addition, you
must import any user-defined formats that have been created for the
data set in order to view or operate on the data. Assume that the
SAS software has already been loaded by using the standard installation
wizard and that the data set is stored in a location that can be accessed.
Register the library
by using SAS Management Console. This metadata enables your SAS applications
to access the data sets that you need to work with. For this example,
the data set contains information about customers of the Orion Gold
enterprise.
To register a Base SAS
library, perform the following steps:
-
In SAS Management Console,
expand
Data Library Manager. Right-click
Libraries.
Then, select the
New Library option to access
the first page of the
New Library wizard.
-
Select
SAS
BASE Library from the
SAS Data list.
Click
Next.
-
Enter an appropriate
library name in the
Name field (for example,
Orion
Gold Customers
). Note that you can supply an optional
description if you want. Click
Next.
-
Enter the following
library properties:
Library Properties
|
|
|
|
|
|
|
C:\SAS\Config\Lev1\SASApp\Data (Enter
the fully qualified path to the library. This path is specified differently
in different operating systems. Make sure that the appropriate path
is displayed in the Selected items field.)
|
You can also click
Advanced
Options to perform tasks such as pre-assignment and
setting host-specific and LIBNAME options. Click
Next to
access the next page of the wizard.
-
Select one or more SAS
servers. The library is available to the server or servers that you
select from this list and visible to users of the server. Click
Next.
-
Examine the final page
of the wizard to ensure that the proper values have been entered.
Click
Finish to save the settings.
At this point, register
tables as explained in
Registering and Verifying Tables. If registering tables fails, check
that the user account has host access permission to the path.