Running SAS on a Remote Host in UNIX Environments


Introduction to Running SAS on a Remote Host

When you invoke SAS in an interactive mode, you can run SAS on your local host, or you can run SAS on a remote host and interact with the session through an X server running on your workstation. The server provides the display services that are needed for the X Window System.

Most of the time, the server name is derived from the machine's name . For example, if your machine is named green , the name of the server is green:0.0 . In most cases, the X server will already be running when you log in. If you need to start your server manually, consult the documentation that is provided with your X Window System software.

To run SAS on a remote host, you must tell SAS which display to use by either setting the DISPLAY environment variable or specifying the -display X command line option.

Steps for Running SAS on a Remote Host

To run SAS on a remote host, follow these steps:

  1. Make sure that the clients running on the remote host have permission to connect to your server. Most systems control this by using the xhost client. Other systems control access through a session manager. To use the xhost client to permit all remote hosts to connect to your server, enter the following command at the system prompt on the system that is running your X server:

     xhost + 

    To run this command automatically each time you log in, enter this command in a file named .xhost .

    If your system does not control access with the xhost client, consult your system documentation for information on allowing remote access.

  2. Log in to the remote system, or use a remote shell.

  3. Identify your server as the target display for X clients that are run on the remote host. You can do this in one of two ways:

    1. Set the DISPLAY environment variable. In the Bourne and Korn shells , you can set the DISPLAY variable as follows :

       DISPLAY=green:0.0   export DISPLAY 

      In the Korn shell, you can combine these two commands:

       export DISPLAY=green:0.0 

      In the C shell, you must use the setenv command:

       setenv DISPLAY green:0.0 

      The DISPLAY variable will be used by all Xclients on the system.

      Note  

      To determine the shell for your system, type ps at the command prompt or check the value of the SHELL environment variable.

    2. Use the -display option. For example:

       sas -display green:0.0 

      If you have trouble establishing a connection, you can try using an IP address instead of a display name, for example:

       -display 10.22.1.1:0 
      Note  

      This option is a command line option for the X Window system, not for SAS. Specifying this option in a SAS configuration file or in the SASV9_OPTIONS environment variable might cause problems when you are running other interfaces.

Preventing SAS From Attempting to Connect to the X Server

To prevent SAS from attempting to connect to the X server, unset the DISPLAY environment variable and use the -noterminal option on the command line.

Troubleshooting Connection Problems

If SAS cannot establish a connection to your display, it prints a message that indicates the nature of the problem and then terminates. An example of a message that you might receive is the following:

 ERROR:  Cannot open Xdisplay.  Check display name/server access authorization. 

Make sure that you have brought up the SAS session correctly. You might need to use the xhost client (enter xhost + ) or some other method to change display permissions. You can also specify the NODMS system option when you invoke SAS to bring your session up in line mode.

If you are unable to invoke SAS, try running another application such as xclock . If you cannot run the application, you might need to contact your system administrator for assistance.




SAS 9.1 Companion for UNIX Environments
SAS 9.1 Companion For Unix Enivronments
ISBN: 1590472101
EAN: 2147483647
Year: 2004
Pages: 185
Authors: SAS Institute

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net