Support for Automatic Transaction Initiation (ATI)

Client applications can control whether ATI transactions are allowed by using the setATI methods on the Terminal COM class. The default setting is for ATIs to be disabled.

The following code fragment shows how to enable ATIs for a particular terminal:

// Create terminal connection to CICS server
Dim terminal as CclOTerminal
Set terminal = new CclOTerminal
terminal.details "MYSERVER","",""
terminal.setATI CclATIEnabled

The Ccl Terminal class runs any outstanding ATIs as soon as a transaction ends, and calls Additional programming needed to handle the ATI replies, and to run ATIs before or between client-initiated transactions, depending on the call synchronization type used:

Synchronous
When you call the Terminal send method, any outstanding ATIs are run after the client-initiated transaction has completed. The Terminal class waits for the ATI replies then updates the CclOScreen object contents as part of the synchronous send call. If you expect an ATI to occur before or between client-initiated transactions, call the Ccl Terminal receiveATI method to wait synchronously for the ATI.
Deferred synchronous

After the CclTerminal Start or Send method is called for a deferred synchronous session, the Poll or PollForReply method is used to receive the replies. Outstanding ATIs are started when the last reply is received (that is on the final Poll or PollForReply method). You can also call the Poll or PollForReply method to start and receive replies for ATIs between client-initiated transactions.

As the Poll or PollForReply methods can be called before or between client-initiated transactions, the receiveATI method is not needed (and is invalid) for deferred synchronous sessions.


Information Information

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//progde/atisup.html