$SETSESSION (set session information)
$SETSESSION sets a character string as session information.
Syntax
$SETSESSION(session-variable-name,character-string)
Values
-
session-variable-name
Specifies a constant or a variable. A constant must be enclosed in single quotation marks (''). Note, however, that any session name that begins with an ampersand (&) cannot be registered or updated.
-
character-string
Specifies a constant or a variable. A constant must be enclosed in single quotation marks ('').
Status
The following table lists and describes the possible statuses:
|
Status |
Description |
|---|---|
|
NORMAL |
Normal end |
|
NODATA |
— |
|
ERROR |
— |
|
Script execution interrupted |
An invalid argument was specified, or an error other than the above occurred. |
- Legend:
-
—: Not applicable
Example
The following example sets the value 123456789 into the session variable SID:
[SET_VALUE]
$SETSESSION('SID','123456789')
VAL = $GETSESSION('SID')
MSG = 'SID = ' + VAL
$ECHO(MSG)- Execution result:
-
SID = 123456789