The DISCONNECT= option
is used to control how user proxy resources are created and terminated
for an SPD Server user. Each SPD Server user in a SAS session requires
an SPD Server user proxy process to handles client requests.
The DISCONNECT= state
of the user proxy is determined by the first LIBNAME statement a user
issues in the SAS session.
When the DISCONNECT=
option is set to NO, the network connections between the SAS client
and the SPD Server user proxy are closed when the SAS session ends.
Closing the network connection ends all SPD Server user proxy processes
for that session.
When the DISCONNECT=
option is set to YES, the network connections between the SAS client
and the SPD Server user proxy are closed after the user's last SPD
Server libref in the SAS session is cleared. Closing the network
connection ends all SPD Server user proxy processes, but not necessarily
the SAS session. If the user issues a subsequent SPD Server libref
in that SAS session, a new SPD Server user proxy process must be started
up.
The advantage of using
DISCONNECT=NO is that the processor overhead that is required to create
an SPD Server user proxy is required only when an SPD Server user
issues his first LIBNAME of his session. The disadvantage of using
DISCONNECT=NO is that the SPD Server user proxy does not terminate
until the user's SAS session ends. For example, if a user does not
log off at the end of the day and leaves an SPD Server session running
overnight, the user proxy remains in force, occupying system resources
that might be used by other jobs.
The advantage of using
DISCONNECT=YES is that user resources are freed as soon as the user's
last LIBNAME of the session is cleared. The disadvantage of using
DISCONNECT=YES is if the user needs to issue a subsequent LIBNAME
in that session, the LIBNAME assignment will require a new SPD Server
user proxy to be launched.
The DISCONNECT=YES LIBNAME
option must be used with the LIBNAME CLEAR statement to be effective.
The default setting
for the DISCONNECT= option is NO.