Skip to main content

Problem:

A demonstration of using the Consolidated Trace Facility (CTF) on UNIX

The Consolidated Trace Facility (CTF) is described in the Server Express documentation, in the "Reference" section, in a book named "Consolidated Tracing Facility". To augment the explanation, this is a demonstration, including working code, a configuration file, and a driving shell script.

Resolution:

Attached to this article is a file named "ctf-demo.tar".  Download this to a UNIX machine, un-tar into a working directory, then run the driving shell script "do.sh".  

All the code in this example works, so you can use it as a model to customize your own debugging approach.  The demonstration program "pi.cbl" from $COBDIR/demo/debug is used as an example program.  The shell script named "do.sh" shows how to set the required environment variable MFTRACE_CONFIG.

Event codes in the trace output can be cryptic, but this example includes an "awk" script capable of replacing the event codes with more human-readable explanations.

Attachments:

ctf-demo.tar

Old KB# 2162