DB2 Version 9.7 for Linux, UNIX, and Windows

SQLXA_XID data structure

This structure is used by the transaction APIs to identify XA transactions. sqlxhfrg, sqlxphcm, sqlxphrl, sqlcspqy and db2XaListIndTrans APIs constitute the transaction APIs group. These APIs are used for the management of indoubt transactions.
Table 1. Fields in the SQLXA-XID Structure
Field Name Data Type Description
FORMATID INTEGER XA format ID.
GTRID_LENGTH INTEGER Length of the global transaction ID.
BQUAL_LENGTH INTEGER Length of the branch identifier.
DATA CHAR[128] GTRID, followed by BQUAL and trailing blanks, for a total of 128 bytes.
Note: The maximum size for GTRID and BQUAL is 64 bytes each.

API and data structure syntax

struct sqlxa_xid_t {
  sqlint32 formatID;
  sqlint32 gtrid_length;
  sqlint32 bqual_length;
  char data[SQLXA_XIDDATASIZE];
  } ;
typedef struct sqlxa_xid_t SQLXA_XID;