APPSRV_SESSION Function

Creates or deletes a session

Syntax

RC = APPSRV_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. This parameter is valid only when you specify a value of "CREATE" for the command parameter.

Details

The APPSRV_SESSION function creates or deletes a session. The function returns zero for a successful completion. A nonzero return value indicates an error condition.

Example: Examples

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