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:
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.