Working With SAS

Working With SAS

This section describes basic activities that you perform in the SAS statistical application as it is implemented in the RCE. It includes information about how to perform the following:

  • Launch and exit from the menus and from the command prompt
  • Access help
  • Install new components

See Implementation Details for general information about the implementation of SAS in the RCE, including where to find out more about the tool.

For information about how to access the RCE, refer to Connecting to the RCE Summer 2009.

Launching and Exiting SAS

Launching and Exiting SAS

You can launch SAS in the RCE by using the menus or by typing a command.

Launching SAS

To launch SAS by using the menus in the RCE, select the Applications menu Mathematics submenu, and then choose SAS to launch the tool.

To launch SAS from the CLI, open a terminal window and type the command sas at the prompt.

Exiting SAS

To exit SAS, select the File menu Exit option in any window except the Log or Output windows.

In the Log and Output windows, the File menu does not have an Exit option, but it does have a Quit option. If you choose the Quit option on these windows, you close only the window from which you chose Quit.

Accessing Built-in Help in SAS

Accessing Built-in Help in SAS

When you launch SAS, several windows and toolbars are displayed. Each window and toolbar includes either a Help menu or a Help button. Click that menu or button to choose an option or to go to Help content for the originating window.

Help is displayed in a Firefox browser window.

When you launch Help, the link All Topics is displayed at the top of the window. Click this link to open a navigation window, which provides a list of contents, an index search function, and a text search function. These options enable you to locate and drill into Help topics.

Also, when you launch SAS, a toolbar named 9.1 Getting Started Tutorial is displayed. You can click the Start Guide button to view the tutorial, or click Close to close the toolbar. This toolbar includes a check box for the option Don't show this dialog again. Click the check box once to enable this option. When you click Close on this toolbar with the Don't show this dialog again option enabled, SAS no longer opens this toolbar when you start the application.

Listing and Installing Functions in SAS

Listing and Installing Functions in SAS

SAS supports multiple types of functions.

Listing Functions Available in SAS

Listing Functions Available in SAS

To view a list of function libraries available in SAS, move to the SAS Explorer window. On the default homepage, SAS Environment, choose the option Libraries.

A list of installed libraries is shown in the explorer window.

Double-click a library icon to view the contents of that library. You can double-click an entry in a library to view the contents of that option in browse mode.

Image(s): 
Installing SAS Libraries

Installing SAS Libraries

An administrator creates a new SAS library by using the New Library window and then assigning a libref. The library then appears in the Libraries folder of the Explorer window.

To install a new SAS library, contact us.

Image(s): 
Locating SAS Directories

Locating SAS Directories

The base SAS directory, or node, is defined as the !SASROOT directory. This directory in the RCE is defined as follows:

/usr/local/sas/9.1

When you install a new library, you create a new subdirectory for that library in this base directory.

To view the name and path of any entity within SAS:

  1. Select that entity within the SAS Explorer window. For example, navigate to a library directory and select a library item.

  2. Right-click the entity and select the Properties option on the pop-up menu.

    The <entity> Properties window is displayed.

  3. Click the Details tab if you selected a library item, or click the Engine/Host tab if you selected another type of entity.

    The File Name field lists the file name and path.

Temporary data sets are placed in your Work library. The location of the Work library is determined by the -work option in the SAS configuration file. In most instances, the default Work directory is /usr/tmp.

To view the contents of the SAS configuration file, open a terminal window and type the following command:

> cat /usr/local/SAS/9.1/sasv9.cfg

To change your working directory to another location:

  1. In an SAS Explorer window, select the Tools menu Options submenu, and then choose the Change Directory option.

    The Change Working Directory window is displayed.

  2. Navigate to the directory in which you choose to work, and then click OK.

IQSS