db2xa_commit()--Commit an XA Transaction Branch (Job Scoped Locks)


  Syntax
 #include <xa.h>

 int db2xa_switch.xa_commit_entry(XID *xid,       

     int rmid, long flags);

  Default Public Authority: *USE

  Service Program: QTNXADTP

  Threadsafe: Yes

A transaction manager calls db2xa_commit() to commit the work associated with *xid. All changes that were made to resources managed by DB2 UDB for iSeries during the transaction branch are made permanent.

For additional information about parameters, authorities required, return values, and error conditions, see the xa_commit() API.


Example

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_commit_entry(xid, rmid, flags);
}


API introduced: V4R3
Top | UNIX-Type APIs | APIs by category