The db2cli.ini file is located by default in the \sqllib\ path for Intel platforms, and the /sqllib/cfg/ path for UNIX platforms.
The following lines must be added to enable the trace (the keywords are NOT case sensitive):
or
TracePathname=(fully qualified pathname)
For example:
[Common] trace=1 tracefilename=d:\temp\clitrace.txt
Setting TRACE to 0 turns tracing off. The trace file information can be left in the configuration file for the next time it is needed. See "TRACE" for more information.
If the application does not exit or exits abnormally, the trace file will probably not be complete. Setting TRAEFLUSH to 1 will cause a flush to disk on every function call (which will increase the overhead of tracing dramatically). See "TRACEFLUSH" for more information.