Allocate Libraries via Server Initialization Code

You can use server initialization code to automatically allocate SAS libraries when users start an Enterprise Miner project. Server initialization code is a server-based text file comprised of SAS statements that execute when an Enterprise Miner project starts up. For example, you can specify LIBNAME statements to allocate one or more libraries when a SAS Enterprise Miner project starts. You can use the Enterprise Miner plug-in to SAS Management Console to customize the properties of Enterprise Miner logical workspace servers, including specifying a path for the logical workspace server to load optional server initialization code that you write.
When you install Enterprise Miner, the Enterprise Miner plug-in for SAS Management Console is copied to the directory where your SAS Management Console is installed. After you install the Enterprise Miner plug-in, the Enterprise Miner application icon appears in the Application Management section of the left pane of the SAS Management Console window.
In the Application Management section, expand the Enterprise Miner icon to display the Projects and Models folders, as shown in the following display:
Enterprise Miner Application Management in SAS Management Console Plug-in
The Enterprise Miner Projects folder contains a list of all of the Enterprise Miner projects that are registered in the Enterprise Miner repository. When you click the Projects folder, a list of all the registered projects is displayed in the adjacent pane on the right. When you expand the Projects folder, the projects that are displayed are sorted by Logical Workspace Server. Expand the Logical Workspace Server icon in the left pane to subset the list of projects that appear on the right. This enables you to display only the projects that belong to a selected server. You can view and customize Logical Workspace Servers even if you do not have any registered Enterprise Miner projects. Servers that have no registered Enterprise Miner projects will recognize their custom project settings when new projects are created on the servers.
To customize the properties for an Enterprise Miner server, perform the following steps:
  1. Right-click the icon for a server under the Projects folder, and then select Properties from the pop-up menu. The Logical Workspace Server Properties window appears.
    workspace server properties window
  2. In the Path box of the Default Location for New Projects section, enter a default location for new Enterprise Miner projects that are created on this server.
  3. If you want to prevent users who create projects from changing the default project location, select the Do not allow users to change this location check box .
  4. In the Max. Concurrent Nodes list, specify the maximum number of concurrently running branches that you want to allow in project process flow diagrams.
  5. In the Initialization Code box, enter the path (on this server) to a project start-up file, if you want to use one. A project start-up file is a text file that contains SAS code that you would like to run when a project is opened, or if a process flow diagram is run, or if result reports are generated.
  6. In the MPCONNECT launch command box, you can enter an alternate command to use when you launch MPCONNECT sessions. Normally, it is safe to leave the MPCONNECT launch command box blank, but there might be cases where you would like to modify some SAS system defaults for sessions that are used when running process flow diagrams. The following default command is used when this box is left blank:
    !sascmdv -noobjectserver -nosyntaxcheck -noasynchio
    This command has the same effect as using the SAS command that was used to launch the SAS workspace session at the time the project was opened.