SAS 9.1.3 Integration Technologies » Server Administrator's Guide

Setting up a COM/DCOM Connection
Server and Client Requirements
Summary of Setup Steps
Planning Your Server Configuration Metadata
Standard Server Metadata
Creating Metadata Using SAS Management Console
Defining Servers
Modifying Servers
Custom Workspace Servers
OLAP Servers
Enabling DCOM on the Server and the Client
Configuring SAS for DCOM
Setting SAS Permissions on the Server
Default on Windows NT/2000
Per Application on Windows NT/2000
Default on Windows XP  Server 2003
Per Application on Windows XP / Server 2003
Configuring DCOM on Windows XP SP2 / Server 2003 SP1
Configuring COM/DCOM for Active Server Page Access
Accessing a Local COM IOM Server from an Active Server Page
Accessing a Remote DCOM IOM Server from an Active Server Page
Administering the Server:
Creating a Metadata Configuration File in SAS
Using ITConfig
Reference Materials
AppIDs for Configuring DCOM
Object Server Parameters
Fields for the Server Definition

Configuring SAS for DCOM

The COM Service Control Manager (SCM), which launches single user servers such as the IOM Workspace, does not load a user profile or environment. As a result, SAS sessions launched via DCOM are not initialized with the user's home directory (typically C:\Documents and Settings\<User Name>\My Documents), environment variables or other profile settings.

The default SAS CONFIG file on Windows (!SASROOT\nls\<Language Code>\SASV9.CFG) contains a definition for SASUSER that contains the Windows shell enumeration ?CSIDL_PERSONAL. For local SAS sessions, this enumeration refers to the user's home directory. However, when SAS is invoked by DCOM, ?CSIDL_PERSONAL resolves to a system folder that can usually only be accessed if the client has administrator privileges at the server.

To correct this issue, you must edit the -SET MYSASFILES and -SASUSER commands in SASV9.CFG to refer to a location that all users can access. Additionally, because the -SASUSER setting will be shared, you should specify the -RSASUSER option to ensure that none of the users update the user settings.

Default Lines from SASV9.CFG:
/* Setup the MYSASFILES system variable              */

/* Setup the default SAS System user profile folder  */
Recommended Change:
/* Setup the MYSASFILES system variable                     */

/* Setup the default SAS System user profile folder         */

On Windows XP, this change would typically place SASUSER at C:\Documents and Settings\All Users\Documents\My SAS Files\9.1.

On most systems, this path would be accessible to everyone. If you choose another path, you must make sure that all of your potential users have read permissions in that directory.

If you use SAS without IOM on the same system, you might want to create a separate default SASV9.CFG file. See Customizing the Startup Command for Workspace Servers for details on how to update the COM startup command to specify a different file in the -CONFIG option.