Previous Page | Next Page

Maintaining Environments

Creating a Start Method for an Environment

SAS/Warehouse Administrator runs in a SAS session. The attributes of the underlying SAS session should be appropriate for the tasks you want to perform in a particular Warehouse Environment.

Note:   When you create a given Warehouse Environment, you should provide the means to start SAS with a configuration file and an autoexec file appropriate for the Environment.   [cautionend]

It is recommended that you create an appropriate start method for any Environment that you create, so that anyone who uses your Environment will have the correct session attributes.


Creating a Shortcut on a PC Desktop

Suppose that you have installed SAS/Warehouse Administrator on a Microsoft Windows NT host, and you have created a Warehouse Environment on that host. The start method for that Environment might be a desktop shortcut, which could be created as follows:

  1. Click the right mouse button on the desktop and select New, and then Shortcut.

  2. In the Create Shortcut window, click Browse to select the appropriate sas.exe file.

    When you have selected the file, click Next.

  3. In the next window, enter a name for the shortcut and click Finish.

    The shortcut is created on the desktop. The next task is to specify a SAS configuration file and a SAS autoexec file appropriate for the tasks you want to perform in SAS/Warehouse Administrator.

  4. Click the shortcut icon with the right mouse button and select Properties.

    The Properties window for the shortcut displays.

  5. In the Properties window for the shortcut, click the Shortcut tab.

    The Shortcut tab displays. The Target field specifies the sas.exe file that you selected in Step 2. For example,

    D:\sas8\sas.exe

  6. On the Shortcut tab, specify a SAS configuration file and a SAS autoexec file appropriate for the tasks you want to perform in SAS/Warehouse Administrator in the Target field. For example,

    "D:\sas8\sas.exe" -config "d:\username\config\sasv8.cfg"

    -autoexec "d:\username\config\autoexec.sas"

    You could replace username with any convenient directory name.

    Note:   To handle spaces in pathnames, use double quotation marks to delimit all paths.  [cautionend]

    For details about SAS configuration files and SAS autoexec files appropriate for SAS/Warehouse Administrator, see SAS Startup Files and SAS/Warehouse Administrator.

  7. To start SAS in a particular directory, specify that directory in the Start in field. For example,

    D:\username\dw\demo

    This is important if the Warehouse Environment that you created uses relative pathnames. For details, see Opening an Environment with a Relative Pathname.

  8. When you are finished, click OK to save your changes.

    The shortcut is ready to use.

Previous Page | Next Page | Top of Page