Subsequent client requests  Mixed-mode applications

Chapter 2: Topics

The final client request

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:

  1. Calls TDGETREQ, with the WAIT-OPTION set to TDS-FALSE, to:

  2. Processes the request and returns results.

  3. Calls TDSNDDON with CONN-OPTIONS set to TDS-ENDRPC, which ends the transaction.

  4. Calls TDFREE.

  5. Calls TDTERM to free up all resources.

NoteTDTERM 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. Mixed-mode applications

View this book as PDF