DB2 Version 10.1 for Linux, UNIX, and Windows

db2GetSyncSession API - Get a satellite synchronization session identifier

Gets the satellite's current synchronization session identifier.

Authorization

None

Required connection

None

API include file

db2ApiDf.h

API and data structure syntax

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

typedef struct db2GetSyncSessionStruct
{
   char *poSyncSessionID;
} db2GetSyncSessionStruct;

db2GetSyncSession 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 db2GetSyncSessionStruct structure.
pSqlca
Output. A pointer to the sqlca structure.

db2GetSyncSessionStruct data structure parameters

poSyncSessionID
Output. Specifies an identifier for the synchronization session that a satellite is currently using.