DSNJ013I TERMINAL ERROR ccc IN BUFFER rrr BEFORE ACTIVE LOG WRITE

Explanation

A scan of the log output buffer just prior to writing the buffer detected an inconsistency in the log data. 'ccc' is the abend reason code associated with the SDUMP that is produced. 'rrr' is the log RBA at which the error was detected.

System action

Db2 will terminate with a dump, and will not write the damaged buffer to either COPY 1 or COPY 2 active log data set.

Operator response

Notify the system programmer. Start Db2 after it terminates.

System programmer response

Because the damaged buffer has not been written to a log data set, Db2 may be restarted. No corrective action is required.

Problem determination

In the Db2 formatted block section of the dump, locate the chain of LBCE blocks. Those are log buffer control elements, and each LBCE controls one 4KB log output buffer. LBCEBUFF, at offset X'20' in the LBCE, points to the buffer, which is always on a 4KB boundary. The log RBA of the first byte of the buffer is in a 6-byte field at offset X'FF2' in the buffer itself. The layout of the buffer is described by the DSNDLCID mapping macro. The header of each record within the buffer is described by the DSNDLRH mapping macro. Locate the buffer that contains the log RBA from the message and find the damage by referring to the description of the reason code later in this book.