STPSRVSET Function

Sets the value of a server property
Category: Character

Syntax

STPSRVSET(valuecode, newvalue)

Required Arguments

valuecode
is the character string name of the property.
newvalue
is the numeric string name of the property.

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, nonzero for failure.
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 time-out is 900 (15 minutes).
Note: The APPSRVSET function can be used instead 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.

Example: Sample Statements

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