A long-running transaction must free up all resources after it accepts and processes the last client request. It treats the new request as any other subsequent client request, then calls TDTERM to end the transaction.
For the final client request, a long-running transaction:
Calls TDGETREQ, with the WAIT-OPTION set to TDS-FALSE, to:
Accept the final request, if one is present, or
End the transaction, if no request is pending.
Processes the request and returns results.
Calls TDSNDDON with CONN-OPTIONS set to TDS-ENDRPC, which ends the transaction.
Calls TDFREE.
Calls TDTERM to free up all resources.
TDTERM is required for IMS TM and
MVS. It is optional but recommended for CICS.
Refer to “Processing a long-running transaction” to see the skeleton of a basic long-running transaction.
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |