Set a trace output file and a trace threshold
To set the trace output file and the trace threshold, use the TraceSet_project() procedure. The DBDK_TRACE_ENTER() and DBDK_TRACE_EXIT() macros provided by BladeSmith use the trace level 20.
The following example sets the file name to Business.trc in
the /tmp directory and sets the threshold to
20:
EXECUTE PROCEDURE TraceSet_Business("/tmp/Business.trc", 20);
To
change the trace output file without altering the trace threshold,
specify the trace threshold as -1
. To change the
trace threshold without altering the trace output file, do not put
a file name between the quotation marks.