Previous Page | Next Page

Writing a Stored Process

STPSRV_SESSION Function



Creates or deletes a session
Category: Character

Syntax
Arguments
Details
Examples

Syntax

STPSRV_SESSION('command',<timeout>)

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.  [cautionend]


Arguments

command

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

timeout

is the optional session timeout 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.


Examples

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

Previous Page | Next Page | Top of Page