Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Tools : @SESSION

@SESSION
Alters session-related items maintained by this table. (TBL)
Table Definition
Parameters
This table has two parameters: INSTANCE and LOCATION.
Fields
@SESSION has only a single row. Fields marked with an asterisk (*) can be changed subject to validity checking. All other fields, including those marked RESERVED, must not be changed.
The library search path for the current transaction.
The name of this TIBCO Object Service Broker system.
Address of a communications area.
Length of the communications area.
Address of free space in the communications area.
Length of free space in the communications area.
Address of dataIn commarea (Call Level Interface, SDK (C/C++), and SDK (Java) only).
Address of dataOut commarea (Call Level Interface, SDK (C/C++), and SDK (Java) only).
The platform where your TIBCO Object Service Broker system is running:
The release number of the TIBCO Object Service Broker system you are running.
See Also
TIBCO Object Service Broker for z/OS External Environments or TIBCO Object Service Broker for Open Systems External Environments for information about the Call Level Interface, the SDK (C/C++), and the SDK (Java).
Usage Notes
Supported operations are: GET and FORALL (which both retrieve the single row), and REPLACE (which replaces the single row, subject to a number of validity tests).
@SESSION behaves like a session table in that its content and effects are local to one TIBCO Object Service Broker session and are not seen by other users, even if they are sharing a single Execution Environment.
Fields COMMHANDLE and COMMLENGTH are primarily for use in the z/OS CICS environment; however, they could be provided in other environments as well. These fields can be replaced by the user (subject to the restriction that the COMMHANDLE value must be the value of field ADDRESS of a row in System Interpreted Table @MAP) with SCOPE of ENVIRONMENT, and COMMLENGTH must not exceed the value of SIZE in the same row of @MAP.
Example
@SESSION_SAMPLE1 Rule
The @SESSION_SAMPLE1 rule changes the TIBCO Object Service Broker security group for the current session to NEWGROUP. The user must have security authorization to make this change; otherwise, the SECURITYFAIL exception is raised.

 
@SESSION_SAMPLE1;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ GET @SESSION(0); | 1
_ @SESSION.GROUP='NEWGROUP'; | 2
_ REPLACE @SESSION(0); | 3
_ ---------------------------------------------------------------------------

 
@SESSION_SAMPLE2 Rule
The @SESSION_SAMPLE2 rule uses @MAP to allocate and register environment storage for a new commarea of 1000 bytes. The address of the new commarea is then placed in the COMMHANDLE field of @SESSION and the length of the storage area is placed in field COMMLENGTH.
If an external program is subsequently called, the address and length of the COMMAREA are passed to it. The COMMAREA can be manipulated using MAP tables. If the address placed in @SESSION.COMMHANDLE is not that of a valid block of environment storage, the DATAREFERENCE exception is raised.

 
@SESSION_SAMPLE2;
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ @MAP.ADDRESS = 0; | 1
_ @MAP.SIZE = 1000; | 2
_ INSERT @MAP('ENVIRONMENT'); | 3
_ GET @SESSION(0); | 4
_ @SESSION.COMMHANDLE = @MAP.ADDRESS; | 5
_ @SESSION.COMMLENGTH = @MAP.SIZE; | 6
_ REPLACE @SESSION(0); | 7
_ ---------------------------------------------------------------------------

 

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved