Specifying log capture routines
You can specify a log capture routine to receive data when Db2 writes data to the active log.
About this task
The module name for the log capture routine is DSNJL004, and its entry point is DSNJW117. The module is loaded during Db2 initialization and deleted during Db2 termination.
Procedure
To specify a log
capture routine:
Link module DSNJL004 into either the prefix.SDSNEXIT
or the Db2 prefix.SDSNLOAD
library. 
Specify the REPLACE parameter of the link-edit job to replace a module that is part of the standard Db2 library for this release. The module should have attributes AMODE(64) and RMODE(ANY).