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

Syntax Description

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 applies only 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.