SUPPORT / SAMPLES & SAS NOTES
 

Support

Usage Note 17322: Allocating libraries for use with SAS Enterprise Miner 5.x

DetailsAboutRate It
In SAS® Enterprise Miner 5.x, there are several places where LIBNAME statements (or other initialization code) can be specified. These statements can be specified in an autoexec file, in server initialization code, in the project startup code, or allocated via the library manager plug-in in SAS® Management Console.

The general form of the LIBNAME statement is (Windows path examples are given, but the same principles apply to UNIX systems):

   libname libref "path";

For example:

  libname MYDATA "d:\EMdata\testdata";

Allocating libraries via an autoexec file

If LIBNAME statements are specified in an autoexec.sas file that resides in the SAS root path, they will be executed by default for every SAS process where no AUTOEXEC override is specified. You can point to a specific autoexec.sas file in any accessible folder (non-mapped drive or UNC) by adding the option:

   -autoexec "[full path]"

to the workspace server's SAS launch command, or to any sasv9.cfg file. In most installs, SAS Enterprise Miner uses the configuration file that's at:

   C:\SAS\EMiner\Lev1\SASMain\sasv9.cfg

where "EMiner" is the installed plan name, and may vary from site to site. That file includes the one in sasroot:

   C:\Program Files\SAS\SAS 9.1\sasv9.cfg

the default installation path, which then includes the one from:

   C:\Program Files\SAS\SAS 9.1\nls\en\SASV9.CFG

Allocating libraries via server initialization code

You can also specify LIBNAME statements specifically for use in SAS Enterprise Miner that are unavailable to other users of the workspace server.

To execute LIBNAME statements for every SAS Enterprise Miner project on a particular server, follow the instructions in the SAS Enterprise Miner help: Installation and Configuration section, Preparing SAS Enterprise Miner for Use subsection. For SAS Enterprise Miner 5.1, open the page titled "Customizing SAS Workspace Server". For SAS Enterprise Miner 5.2, open the page titled "Customizing SAS Enterprise Miner Metadata", which explains how to use the SAS Enterprise Miner plug-in to the SAS Management Console to specify the path to server initialization code.

Allocating libraries via project startup code

You can also execute LIBNAME statements for a single project. Once a project is opened, select the project (top line) in the navigation (upper left) pane of the SAS Enterprise Miner window. Select the ellipsis button next to the "Start-Up Code" property. Enter the LIBNAME statement in the Start-Up code window.

Allocating libraries via the SAS Management Console

For information on assigning libraries via SAS Management Console for use in SAS Enterprise Miner, refer to 016552 .

Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Enterprise MinerMicrosoft Windows XP Professional5.1.39.1 TS1M3
Microsoft Windows NT Workstation5.1.39.1 TS1M3
Microsoft® Windows® for 64-Bit Itanium-based Systems5.29.1 TS1M3
Microsoft Windows Server 2003 Enterprise Edition5.1.39.1 TS1M3
Microsoft Windows Server 2003 Standard Edition5.29.1 TS1M3
Microsoft Windows Server 2003 Datacenter Edition5.1.39.1 TS1M3
Microsoft Windows 2000 Server5.1.39.1 TS1M3
HP-UX IPF5.1.39.1 TS1M3
Microsoft Windows 2000 Professional5.1.39.1 TS1M3
Linux5.29.1 TS1M3
64-bit Enabled Solaris5.29.1 TS1M3
Solaris5.29.1 TS1M3
Microsoft Windows 2000 Advanced Server5.29.1 TS1M3
Microsoft Windows 2000 Datacenter Server5.29.1 TS1M3
64-bit Enabled AIX5.1.39.1 TS1M3
AIX5.29.1 TS1M3
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.