Allocate Libraries via SAS Management Console

Enterprise Miner data libraries that are used frequently can be allocated for use with SAS Enterprise Miner 7.1 using SAS Management Console. First, you must define the library for the SAS Enterprise Miner input data set:
  1. Open SAS Management Console.
  2. Under the Data Library Manager plug-in, right-click on the Libraries folder and select New Library.
  3. 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.
  4. Type 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.
  5. 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.
  6. Enter a libref for the library in the libref field. The libref must be 8 characters or less.
  7. 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.
  8. 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.
  9. 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:
  1. In SAS Management Console, click on the Data Library Manager icon.
  2. Expand the Libraries folder.
  3. Right-click the SAS library that you just created and select Properties from the pop-up menu.
  4. In the Library Properties window, go to the Authorization tab and select the PUBLIC group.
  5. 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.
  1. From SAS Management Console, expand the Application Management folder.
  2. Under the expanded Application Management folder, click on the Enterprise Miner icon.
  3. Under the expanded Enterprise Miner icon, expand the Projects folder.
  4. In the Projects folder, right-click the logical workspace server icon (SASApp), and select Properties from the pop-up menu.
  5. In the Options tab of the Server Properties window, use the MPCONNECT launch command field to specify your METAAUTORESOURCES option.
    workspace server properties
    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"