00D10021

Explanation

The Db2 stand-alone log services GET processing macro (DSNJSLR) issued this reason code. A gap in the log RBA range has been encountered when switching log data sets, indicating missing log records.

This condition may or may not be intentional on the part of the user. Normally, a continuous set of log records are supplied as input by the ACTIVEn and ARCHIVE ddnames in the user's JCL. If a log data set was intentionally (or unintentionally) removed, this condition will arise.

System action

In response to the DSNJSLR FUNC=GET call, Db2 places a return code of 4 in register 15 and a reason code of 00D10021 in register 0. No abend is issued by the stand-alone log services CSECT (DSNJRS01), and no information is written to SYS1.LOGREC data set.

Information about the results of the GET request is also returned in the stand-alone log GET Feedback Area (SLRF). A pointer to the next log record following the gap is placed in SLRFFRAD.

The stand-alone log services program is under the control of a user-written program that uses the DSNJSLR macro. The user program must therefore anticipate and react to a nonzero return code and a nonzero reason code, possibly by terminating the execution of the user program.

System programmer response

As mentioned above, this may or may not be an intentional error. Check the user's JCL to ensure that a continuous string of log records has been supplied. If the BSDS method is being used, use the print log map (DSNJU004) utility to examine the RBA ranges as recorded in the BSDS, and note any RBA gaps which may have resulted from the deletion of an active log data set or an archive log data set.

If it appears that a log error may have occurred, execute the log print utility (DSN1LOGP) to attempt to obtain a detailed report of the log record(s) associated with the failure.