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

STPSRVSET


Sets the value of a server property

Syntax
Arguments
Details
Examples


Syntax

RC = STPSRVSET( valuecode, newvalue )

Note: The APPSRVSET function can be used in place of STPSRVSET. This feature is provided in order to enable you to convert existing SAS/IntrNet programs to stored processes. The following Application Dispatcher properties are not supported by the SAS Stored Process Server: REQUIRE COOKIE, REQUEST TIMEOUT, and AUTOMATIC HEADERS.


Arguments

valuecode
is the character string name of the property.

newvalue
is the numeric string name of the property.

The following table lists the valid properties for valuecode and provides a description of each.

Valuecode Description
PROGRAM ERROR specifies the return code when there is an error. This can be set to any value.
SESSION TIMEOUT specifies the number of seconds that elapse before a session expires. The default session timeout is 900 (15 minutes).

Details

The STPSRVSET function takes one character string property and one numeric string property and returns a numeric string result. The return code is zero for success, non-zero for failure.


Examples

SAS Statements
rc=stpsrvset('session timeout',900);
rc=stpsrvset('program error',256);