#include <xa.h> int db2xa_switch.xa_end_entry(XID *xid, int rmid, long flags);
A transaction manager calls db2xa_end() when an application thread of control finishes or needs to suspend work on a transaction branch. When db2xa_end() successfully returns, the calling thread of control is no longer associated with the transaction branch, but the branch still exists.
SQL cursors used while the thread was associated with this transaction branch may be closed. Refer to the SQLHOLD keyword description in the usage notes of the db2xa_open() API for details.
For additional information about parameters, authorities required, return values, and error conditions, see the xa_end() API.
See Code disclaimer information for information pertaining to code examples.
#include <xa.h> main() { XID *xid; int rmid; long flags; int retcode; extern struct xa_switch_t db2xa_switch; retcode = db2xa_switch.xa_end_entry(xid, rmid, flags); }
Top | UNIX-Type APIs | APIs by category |