Producing trace messages
Call attachment facility trace messages are always included in the call attachment facility's trace table in SYSABEND or SYSUDUMP dumps. However, these trace messages can also be sent to a TSO terminal or to SYSOUT.
Procedure
To send trace messages to a TSO terminal or SYSOUT:
Before starting an application, allocate ddname DSNTRACE.
DSNTRACE can be allocated to a TSO terminal or to SYSOUT. In
TSO foreground, issue FREE DD(DSNTRACE) to send SYSOUT data to the
printer.
Do not allocate DSNTRACE to a data set unless the application only connects to Db2 from a single task. The call attach DSNTRACE does not function in a multi-tasking environment because the call attachment facility does not serialize access to the trace data set. Writing trace records (SVC6F, DECIMAL SVC111) to the same JES2 SYSOUT data set results in ABEND378.