XWAIT System Option: Windows

Specifies whether you have to type EXIT at the DOS prompt before the DOS shell closes.
Valid in: configuration file, SAS invocation, OPTIONS statement
Category: Environment control: Display
PROC OPTIONS GROUP= ENVDISPLAY
Default: XWAIT
Windows specifics: all

Syntax

-XWAIT | -NOXWAIT
XWAIT | NOXWAIT

Required Arguments

XWAIT
specifies that you must type EXIT to return to your SAS session. XWAIT is the default.
NOXWAIT
specifies that the command processor automatically returns to the SAS session after the specified command is executed. You do not have to type EXIT.

Details

The XWAIT system option does not affect Windows applications, such as Excel. It only applies to applications that execute in a Command Prompt window.
The XWAIT system option affects the Command Prompt window started by any of the following:
  • X statement
  • X command
  • CALL SYSTEM routine
  • %SYSEXEC statement.