SAS Enterprise Miner
data libraries that are used frequently can be allocated for use with
SAS Enterprise Miner using SAS Management Console. First, you must
define the library for the SAS Enterprise Miner input data set:
-
Open SAS Management
Console.
-
Under the Data Library
Manager plug-in, right-click the Libraries folder and select
New
Library.
-
Select the appropriate
engine. If the SAS data set is located on the SAS Workspace Server,
your engine should be the default Base SAS engine. Select
Base
SAS Library and click
Next.
-
Enter the name of your
library and click
Next. Be sure to check
the
Location and make sure that the selected
value is appropriate. The
Location specifies
the metadata folder that contains your library definition.
-
Select an available
server from the list on the left and click on the right arrow . This
will move the selected server into the adjacent Selected servers pane.
Click
Next.
Note: If the SASMeta server appears
in the list, do not select it as your server.
-
Enter a libref for the
library in the libref field. The libref must be 8 characters or less.
-
Click
New and
enter the name of the directory where the library is located.
Note: This directory must be accessible
to the SAS Workspace Server.
-
Click
Advanced
Options, select the
Library is pre-assigned check
box, and click
OK.
Note: If you have SAS tables only,
you don't have to pre-assign libraries. The libraries will automatically
be available as a Metadata Repository from
the Create Data Source wizard. If you have
database or RDBM libraries (such as Oracle), you must pre-assign RDBMS
libraries, and they will be available as a SAS Table in
the Create Data Source wizard. If you have
both SAS and RDBMS tables, you must choose the Library
is pre-assigned option for both types of tables. With
this option, all of the tables will be available via SAS
Table in the Create Data Source wizard.
-
Click
Next and
review your entries. Text similar to this should be displayed:
Library:
My Enterprise Miner data
Libref:
emdata
Location:
/Shared Data
Assigned to SAS Servers:
SASApp
Libref:
MyData
Engine:
BASE
Path Specification:
c:\yourdata <specify correct path to data>
Library is pre-assigned:
Yes
If this looks correct,
click Finish and then OK.
Next, you must grant
Read permission for the metadata in your new library:
-
In SAS Management Console,
click
Data Library Manager.
-
Expand the Libraries
folder.
-
Right-click the SAS
library that you just created and select
Properties from
the pop-up menu.
-
In the
Library
Properties window, go to the Authorization tab and select
the PUBLIC group.
-
Select the check box
in the Grant column for the Read permission row.
SAS Enterprise Miner
needs resources to perform automatic metadata initialization. You
must add the METAAUTORESOURCES option to the SAS Enterprise Miner
MPCONNECT launch command. The METAAUTORESOURCES option identifies
general system resources that must be assigned when SAS starts up.
The system resources must be defined in a repository on the SAS Metadata
Server. The resources contain a list of librefs (library references)
that need to be assigned at start-up. The parameter that is passed
with the METAAUTORESOURCES option is the name of the SAS Application
Server. In the previous example, the SAS Application Server was SASApp.
-
From SAS Management
Console, expand the Application Management folder.
-
Under the expanded Application
Management folder, click the SAS Enterprise Miner icon.
-
Under the expanded SAS
Enterprise Miner icon, expand the Projects folder.
-
In the Projects folder,
right-click the logical workspace server icon (SASApp), and select
Properties from
the pop-up menu.
-
In the Options tab of
the
Server Properties window, use the MPCONNECT
launch command field to specify your METAAUTORESOURCES option.
The following is an
example of an MPCONNECT launch command that uses the METAAUTORESOURCES
option:
On Windows Systems:
SAS -metaautoresources "SASApp"
-config "c:\sas\eminer\lev1\sasapp\sasv9.cfg"
On UNIX Systems:
/installdir/EMiner/Lev1/SASApp/sas.sh
-metaautoresources "SASApp"