![]() | ![]() | ![]() | ![]() |
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 .
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Enterprise Miner | Microsoft Windows XP Professional | 5.1.3 | 9.1 TS1M3 | ||
Microsoft Windows NT Workstation | 5.1.3 | 9.1 TS1M3 | ||||
Microsoft® Windows® for 64-Bit Itanium-based Systems | 5.2 | 9.1 TS1M3 | ||||
Microsoft Windows Server 2003 Enterprise Edition | 5.1.3 | 9.1 TS1M3 | ||||
Microsoft Windows Server 2003 Standard Edition | 5.2 | 9.1 TS1M3 | ||||
Microsoft Windows Server 2003 Datacenter Edition | 5.1.3 | 9.1 TS1M3 | ||||
Microsoft Windows 2000 Server | 5.1.3 | 9.1 TS1M3 | ||||
HP-UX IPF | 5.1.3 | 9.1 TS1M3 | ||||
Microsoft Windows 2000 Professional | 5.1.3 | 9.1 TS1M3 | ||||
Linux | 5.2 | 9.1 TS1M3 | ||||
64-bit Enabled Solaris | 5.2 | 9.1 TS1M3 | ||||
Solaris | 5.2 | 9.1 TS1M3 | ||||
Microsoft Windows 2000 Advanced Server | 5.2 | 9.1 TS1M3 | ||||
Microsoft Windows 2000 Datacenter Server | 5.2 | 9.1 TS1M3 | ||||
64-bit Enabled AIX | 5.1.3 | 9.1 TS1M3 | ||||
AIX | 5.2 | 9.1 TS1M3 |