CONNECTWAIT System Option

Specifies whether remote submits are executed synchronously or asynchronously.
Client: optional
Server: optional
Valid in: Configuration file, OPTIONS statement, SAS System Options window, SAS invocation
Category: Communications: Networking and Encryption
PROC OPTIONS GROUP= Communications
Alias: CWAIT
Default: CONNECTWAIT

Syntax

CONNECTWAIT | NOCONNECTWAIT

Syntax Description

CONNECTWAIT
specifies that RSUBMIT statements are executed synchronously. Synchronous processing means that server processing must be completed before control is returned to the client session.
NOCONNECTWAIT
specifies that RSUBMIT statements are executed asynchronously. Asynchronous processing permits the client or multiple server processes to execute in parallel. Control is returned to the client session immediately after an RSUBMIT begins execution to allow for continued processing in the client session or other server sessions.

Details

The CONNECTWAIT system option specifies whether remote submits are executed synchronously. The default setting can be overridden by setting the CONNECTWAIT= option in the SIGNON statement or in subsequent RSUBMIT statements. The option in the RSUBMIT or SIGNON statement or command takes precedence over the system option.
If NOCONNECTWAIT is specified, you might also want to specify the CMACVAR= option in the RSUBMIT statement. Setting CMACVAR= enables you to learn the status of the current asynchronous RSUBMIT (whether it has completed or is still in progress).