Log capture routines

A log capture exit routine makes Db2 log data available for recovery purposes in real time.

Begin program-specific programming interface information.The routine receives data when Db2 writes data to the active log. Your local specifications determine what the routine does with that data. The routine does not enter or return data to Db2.

Performance factor: Your log capture routine receives control often. Design it with care: a poorly designed routine can seriously degrade system performance. Whenever possible, use the instrumentation facility interface (IFI), rather than a log capture exit routine, to read data from the log.

General guidelines for writing exit routines applies, but with the following exceptions to the description of execution environments:
  • A log capture routine can execute in either TCB mode or SRB mode, depending on the function it is performing. When in SRB mode, it must not perform any I/O operations nor invoke any SVC services or ESTAE routines.End program-specific programming interface information.