DSNJ014I TERMINAL ERROR ccc IN BUFFER rrr AFTER ACTIVE LOG WRITE.
Explanation
A scan of the log output buffer, after writing to the COPY 1 active log data set and before writing to COPY 2, 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 the COPY 2 data set.
Operator response
Notify the system programmer.
System programmer response
The block containing the indicated log RBA may be damaged. The buffer was found to be in error at the completion of the write to the COPY 1 data set of the active log.
If dual active logs are being used, use print log map (DSNJU004) to list the active log data sets for both copies of the active log. Find the COPY 2 data set with the corresponding RBA, and copy that data set (using access method services REPRO) to the COPY 1 data set. Start Db2.
If only a single active log is used, contact the IBM® support center for assistance. An attempt to start Db2 may succeed if the damage to the buffer occurred after completion of the write to DASD.
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.