Previous Page | Next Page

Doing More with Setup

Using Logon and Logoff Exits and an Alternate Main Menu

When you access SAS/ASSIST software, you can use the Logon exit item to specify an application that you want to initiate when you enter SAS/ASSIST software. Additionally, by using Alternate main menu, you can specify that you want to display an alternate menu instead of, or in addition to, the WorkPlace menu or the Version 6 block-style menu. When you exit SAS/ASSIST software, you can specify an application you want to invoke upon exiting by using Logoff exit.

This section discusses the use of Logon/logoff exits, including using Alternate main menu. As an alternative to using these windows, you can set the SAS/ASSIST start program, Type of start program, SAS/ASSIST stop program, and Type of stop program User Profile options. See Setting User Profile Options.


Specifying a Logon Application

  1. To display the Set Logon Application window, follow this selection path:Tasks [arrow] Setup [arrow] Logon/logoff exits [arrow] Logon Exit

    Set Logon Application Window

    [Set Logon Application Window]

  2. In the Library field, type the name of the library that contains the applications database, for example, SASUSER.

  3. In the Applications Database field, specify the applications database that contains the desired application. The applications database must reside in the library specified in the Library field and must be of type SASAPPL. The default applications database is SASUSER.SASAPPL.

  4. In the Name field, type the name of the application.

  5. Select the type of application from the list shown in the window.

  6. To bypass SAS/ASSIST software, select Do not enter SAS/ASSIST.

  7. Select OK to return to the WorkPlace menu window.

The next time you invoke SAS/ASSIST software, your logon exit application is initiated first. When you exit the logon exit application, the WorkPlace menu appears.

You also can invoke a logon exit with the LOGON= command-line option. The syntax of this command is

ASSIST LOGON='libref.applds.applname.appltype'

The libref.applds.applname.appltype argument specifies a four-level name for the application. The default application database is SASUSER.SASAPPL. The LOGON= command-line option overrides Logon exit.

To disable the Do not enter SAS/ASSIST selection, bypass your logon exit application, and access SAS/ASSIST software, type ASSIST LOGON=NO on a command line or command window and press ENTER.


Specifying a Logoff Application

  1. To open the Set Logoff Application window, follow this selection path:Tasks [arrow] Setup [arrow] Environment [arrow] Logon/Logoff Exits [arrow] Logoff ExitThe Set Logoff Application window is similar to the Set Logon Application window, except that there is no Do not enter SAS/ASSIST option. Instead, there is an Exit the SAS System option.

  2. Type information in the window using the guidelines given previously for the Set Logon Application window. If desired, select Exit the SAS System to specify that you want to end your SAS session when you exit SAS/ASSIST software.

  3. Select OK to return to the WorkPlace menu.

When you exit SAS/ASSIST software, your logoff exit application is initiated. When you exit the logoff exit application, you return to the point from which you invoked SAS/ASSIST software, or exit SAS, depending on your selection for the Exit the SAS System option.

You can also initiate a logoff exit with the LOGOFF= command-line option. The syntax for this command is

ASSIST LOGOFF='libref.applds.applname.appltype'

The libref.applds.applname.appltype argument specifies a four-level name of the application. The default application database is SASUSER.SASAPPL.

To disable the Exit the SAS System selection and bypass your logoff exit application, type ASSIST LOGON=NO on a command line or command window and press ENTER.

The LOGOFF= command line option overrides Logoff exit.


Specifying an Alternate Main Menu

  1. To open the Set Alternate Main Menu window, follow this selection path:Tasks [arrow] Setup [arrow] Environment [arrow] Logon/logoff exits [arrow] Alternate main menu The Set Alternate Main Menu window is similar to the Set Logon Application window.

  2. Type information in the window using the guidelines given previously for the Set Logon Application window.

  3. If desired, deselect Do not enter SAS/ASSIST to enter SAS/ASSIST software when you exit the alternate main menu. This item, which is selected by default, enables you to bypass SAS/ASSIST software.

  4. Select OK to return to the WorkPlace menu.

The next time you access SAS/ASSIST software or return to the WorkPlace menu from a task window, your alternate menu appears instead. When you exit the alternate main menu, the SAS/ASSIST WorkPlace menu appears (if you have deselected Do not enter SAS/ASSIST).

If you have specified an alternate main menu application, and you want to disable the alternate main menu feature, access SAS/ASSIST software by typing ASSIST PRIMARY=NO on a command line or command window. This bypasses the specified alternate main menu application and displays the WorkPlace menu.

You can also invoke an alternate main menu with the PRIMARY= command line option. The syntax for this command is

ASSIST PRIMARY='libref.applds.applname.appltype'

The libref.applds.applname.appltype argument specifies a four-level name for the application. The default application database is SASUSER.SASAPPL.

The PRIMARY= command-line option overrides Alternate main menu.

Previous Page | Next Page | Top of Page