STPSRV_SESSION Function

Creates or deletes a session
Category: Character

Syntax

STPSRV_SESSION('command',<timeout>)

Required Argument

command
is the command to be performed. Allowed values are CREATE and DELETE.

Optional Argument

timeout
is the optional session time-out in seconds. This property is valid only when you specify the value CREATE for the command property.

Details

The STPSRV_SESSION function creates or deletes a session. The function returns zero for a successful completion. A nonzero return value indicates an error condition.
Note: The APPSRV_SESSION function can be used instead of STPSRV_SESSION. This feature is provided in order to enable you to convert existing SAS/IntrNet programs to stored processes.

Example: Sample Statements

Sample Statements
SAS Statements
rc=stpsrv_session('create', 600);
rc=stpsrv_session('delete');