Use this procedure to get a CTF trace for a PL/I DB2 stored procedure.
UNIX:
## MFTRACE configuration file mftrace.emitter.textfile#Format = $(TIME) $(COMPONENT) $(EVENT) $(LEVEL) :$(DATA) mftrace.dest=textfile mftrace.emitter.binfile#location=/tmp/ctflogs mftrace.emitter.textfile#location=/tmp/ctflogs # CTF Configuration Starting point for Open PLI Problem Determination # (Maximum amount of Open PL/I CTF tracing )# mftrace.emitter.es#level = 9999 # Maximum file size in "k" bytes mftrace.emitter.textfile#MaxFilesize = 26000 # Maximum number of log files to keep. mftrace.emitter.textfile#MaxGeneration = 6 ################################################ # PL/I RTS Tracing ################################################ mftrace.level.mf.rts = info mftrace.comp.mf.rts#api = true mftrace.comp.mf.rts#syspgm = true mftrace.comp.mf.rts#pgm = true mftrace.level.mf.rts.pli = debug mftrace.comp.mf.rts.pli#all = true mftrace.level.mf.pli.macropp = info mftrace.comp.mf.pli.macropp#compsrc = trueSee the help topic "Configuration File for CTF" for more information on creating a CTF configuration file.
db2stopor
db2stop FORCE
UNIX:
MFTRACE_CONFIG=/tmp/CHKCTF.CFG export MFTRACE_CONFIG
db2start
A CTF trace file generates, and the trace filename starts with the characters db2fmp.