Working in the SAS Windowing Environment |
What Is the SAS Session Manager? |
The SAS Session Manager for X (motifxsassm ) is an X client that is run by SAS when you use the SAS windowing environment. The Session Manager is automatically minimized when you start SAS. The SAS: Session Management dialog box for the SAS Session Manager appears as shown in the following display:
SAS: Session Management Dialog Box
The SAS: Session Management dialog box lists the following information:
which SAS session it controls
the host computer from which the SAS session was invoked
the UNIX process identifier of the SAS session
Features of the SAS Session Manager |
The buttons in the SAS Session Manager enable you to do the following tasks:
Minimize |
maps and minimizes all windows of the SAS session. This function is performed with standard X library calls and will work with most X window managers. | ||||||||
Restore |
restores all of the windows that are open in the SAS session that is controlled by that SAS Session Manager. This function is performed with standard X library calls and will work with most X window managers. | ||||||||
Interrupt |
sends a UNIX signal to SAS. When SAS receives the signal, it displays the following dialog box if no PROC or DATA steps are executing: If a PROC or DATA step is executing, SAS displays the following dialog box: You make your selection by clicking one of the buttons:
| ||||||||
Terminate |
displays a dialog box that asks you to confirm whether you want to terminate the SAS session: If you click OK, the SAS Session Manager sends a UNIX signal to the SAS session that forces the session to terminate.
| ||||||||
Help |
provides Help for the SAS: Session Management dialog box. |
Using the Host Editor from within Your SAS Session |
When you issue the HOSTEDIT command, SAS passes the request to the SAS Session Manager, which then invokes your host editor, so the SAS Session Manager must be running for the HOSTEDIT command to take effect. When you issue the HOSTEDIT command, SAS creates a temporary file that contains the data from the active SAS window and passes this file to your host editor. (These temporary files are stored in the directory specified by the SAS WORK option.) When you save your file in the host editor, the file is copied back into the SAS window if the window is writable, and the temporary files are deleted when the SAS session ends. See Configuring SAS for Host Editor Support in UNIX Environments for more information.
Closing the SAS Session Manager |
If you close the SAS: Session Management dialog box, you cannot retrieve the SAS Session Manager. To display the SAS Session Manager again, you can reinvoke !SASROOT/utilities/bin/motifxsassm with the -pid or the -sessionid arguments. Execute these commands at the UNIX prompt or use them with the X statement:
!SASROOT/utilities/bin/motifxsassm -pid pid
!SASROOT/utilities/bin/motifxsassm -sessionid integer
Disabling the SAS Session Manager |
You can disable the SAS Session Manager by performing one of the following steps:
Select Tools Options Preferences.
On the General tab, deselect the Start Session manager check box.
Specify the following X resource, in lowercase, on the SAS command line at invocation:
sas -xrm 'SAS.startSessionManager: False'
Specifying the sas.startSessionManager X resource will deselect the Start Session manager check box in the Preferences dialog box.
Note: SAS saves the settings in the Preferences dialog box when it exits. If you have disabled the SAS Session Manager during your session, then the next time you invoke SAS, the SAS Session Manager will not run. To start the SAS Session Manager, select the Start Session manager check box in the Preferences dialog box or specify the following command, in lowercase, on the SAS command line at invocation:
sas -xrm 'SAS.startSessionManager: True'
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.