DB2 Version 10.1 for Linux, UNIX, and Windows

SQLU_RLOG_INFO data structure

This structure contains information about the status of calls to the db2ReadLog API; and to the database log.

Table 1. Fields in the SQLU-RLOG-INFO Structure
Field Name Data Type Description
initialLSN SQLU_LSN Specifies the LSN value of the first log record that is written after the first database CONNECT statement is issued. For more information, see SQLU-LSN.
firstReadLSN SQLU_LSN Specifies the LSN value of the first log record read.
lastReadLSN SQLU_LSN Specifies the LSN value of the last log record read.
curActiveLSN SQLU_LSN Specifies the LSN value of the current (active) log.
logRecsWritten sqluint32 Specifies the number of log records written to the buffer.
logBytesWritten sqluint32 Specifies the number of bytes written to the buffer.

API and data structure syntax

typedef SQL_STRUCTURE SQLU_RLOG_INFO
{
   SQLU_LSN initialLSN;
   SQLU_LSN firstReadLSN;
   SQLU_LSN lastReadLSN;
   SQLU_LSN curActiveLSN;
   sqluint32 logRecsWritten;
   sqluint32 logBytesWritten;
} SQLU_RLOG_INFO;