sessionID

In a program of type VGWebTransaction, the system variable SysVar.sessionID contains an ID that is specific to the Web application server session. You can use the SysVar.sessionID value as a key value to access file or database information shared between programs. A related variable for VGWebTransaction programs is SysVar.conversationID.

Outside of Web applications, the following statements apply:

You can use SysVar.sessionID in these ways:

The characteristics of SysVar.sessionID are as follows:
Primitive type
CHAR
Data length
8 (padded with blanks if the value has less than 8 characters)
Is value always restored after a converse?
Yes

SysVar.sessionID is initialized from the Java Virtual Machine system property user.name; and if the property cannot be retrieved, SysVar.sessionID is blank.

Example

  myItem = SysVar.sessionID;
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.