SAS 9.1.3 Integration Technologies » Developer's Guide


SAS Stored Processes
Software Requirements
Creating Stored Processes
Input Parameters
Result Types
%STPBEGIN and %STPEND
Reserved Macro Variables
Stored Process Server Functions
Sessions
Samples
Debugging
Converting SAS/IntrNet Programs
Using Stored Processes
Building a Web Application
SAS Stored Process Web Application
Configuration
Input
HTTP Headers
Embedding Graphics
Chaining Stored Processes
Using Sessions
Debugging
IOM Direct Interface Stored Processes
SAS Stored Processes

STPSRV_SESSION


Creates or deletes a session

Syntax
Arguments
Details
Examples


Syntax

RC = STPSRV_SESSION( 'command' , <timeout> )

Note: The APPSRV_SESSION function can be used in place of STPSRV_SESSION. This feature is provided in order to enable you to convert existing SAS/IntrNet programs to stored processes.


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 a value of "CREATE" for the command property.

Details

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


Examples

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