DB2 Version 10.1 for Linux, UNIX, and Windows

db2XaGetInfo API - Get information for a resource manager

Extracts information for a particular resource manager once an xa_open call has been made.

Authorization

Instance - SPM name connection

Required Connection

Database

API include file

sqlxa.h

API and data structure syntax

SQL_API_RC SQL_API_FN
  db2XaGetInfo(db2Uint32 versionNumber,
               void * pParmStruct,
               struct sqlca * pSqlca);

typedef SQL_STRUCTURE db2XaGetInfoStruct
{
   db2int32 iRmid;
   struct sqlca         oLastSqlca;
} db2XaGetInfoStruct;

db2XaGetInfo API Parameters

versionNumber
Input. Specifies the version and release level of the structure passed in as the second parameter, pParmStruct.
pParmStruct
Input. A pointer to the db2XaGetInfoStruct structure.
pSqlca
Output. A pointer to the sqlca structure.

db2XaGetInfoStruct data structure parameters

iRmid
Input. Specifies the resource manager for which information is required.
oLastSqlca
Output. Contains the sqlca for the last XA API call.
Note: Only the sqlca that resulted from the last failing XA API can be retrieved.