Attention events are handled by an attention sequence. Any of the following actions can trigger an attention event:
The Database-Library issues a dbcancel( ) command.
A SQL user cancels processing while the server is sending results.
An APT program or form issues a closesql command.
When an attention sequence is issued, the process flow occurs as follows:
Open Client issues an attention packet to DirectConnect, then discards anything else received until it receives a TDSDONE packet with the attention Ack bit on.
DirectConnect converts the attention packet into a SNA SIGNAL command, issuing an LU 6.2 request-to-send verb. DirectConnect then discards any results received from the mainframe until receiving a TDS DONE packet with the attention Ack bit on.
At the mainframe, CICS receives the SIGNAL command and informs the Server Option.
Gateway-Library passes back a return code, indicating TDS_CANCEL_RECEIVED, on all subsequent TDSNDROW, TDSNDMSG, and TDSETPRM calls from an application. Any data associated with TDSNDROW or TDSNDMSG calls is discarded until the application issues a TDSNDDON call.
For details on these calls, see the Mainframe Connect Server Option Programmer’s Reference for COBOL or PL/1.
When the application issues a TDSNDDON call, the Server Option support sends a TDS DONE packet with the attention Ack bit on. This ends the attention sequence.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |