Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 4 TIBCO Object Service Broker Sessions Under z/OS Batch : How to Manipulate Data in a TIBCO Object Service Broker Batch Client Session

How to Manipulate Data in a TIBCO Object Service Broker Batch Client Session
Passing Data to TIBCO Object Service Broker Batch Sessions
Batch clients can pass data to the session by:
Placing data in a table occurrence mapped by the Host Language Interface (HLI) and performing an INSERT or REPLACE. Refer to Using the Host Languages Interface for more information.
Returning from the Batch Client
Under normal circumstances, the batch client sets a return code of zero. You can use the $SETSESSIONEND tool to set the return code to a value between zero and 3999:
CALL $SETSESSIONEND('RC',8);
or to cause a user abend:
CALL $SETSESSIONEND('ABEND',300);
Determining the Next Step
You can subsequently use JES2 or JES3 condition processing to control the execution of subsequent job steps based on return or abend codes. For example:

 
//S1 EXEC PGM=S6BBATCH
.
//S2 EXEC PGM=S6BBATCH,COND=(EQ,8)
.

 
Step S2 runs only if step S1 sets a return code other than 8.
Returning Data to a User Batch Client
Your called rule can return data to the user batch client by:
Populating a temporary table and using the Host Language Interface to perform a FORALL or GET to the table containing the required data. Refer to Using the Host Languages Interface for more information.
Using External Routines
Your session can invoke external routines defined using the ROUTINES and ARGUMENTS tables to manipulate data. Refer to Chapter 10, Accessing External Routines for more information.
See Also
TIBCO Object Service Broker Managing Data about MAP tables.
TIBCO Object Service Broker Programming in Rules about the rules language statements and writing rules.
TIBCO Object Service Broker Shareable Tools about the use of the tools.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved