Previous Page | Next Page

Writing a Stored Process

STPSRVSET Function



Sets the value of a server property
Category: Character

Syntax
Arguments
Details
Examples

Syntax

STPSRVSET(valuecode, newvalue)

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


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, nonzero for failure.


Examples

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

Previous Page | Next Page | Top of Page