This article explains how to use the facilities provided for tracing file operations.
Problem:
Is it possible to know the sequence of all I-O verbs of all data files? When the application runs first time, we're not having any problem, but the second time, a file-status is displayed.
Resolution:
The default filename for the File Handler configuration file is extfh.cfg but you can use a different filename by setting the EXTFH environment variable. For example:
set EXTFH=/mydir/test.cfg
sets the filename to /mydir/test.cfg
It is necessary to use the File Handler configuration parameters TRACE, TRACEFILEEXTEND, TRACEFILENAME
[XFH-DEFAULT]
TRACE=ON
TRACEFILENAME=/trace/XHFTRACE.XFH
TRACEFILEEXTEND=ON
The name of the file must be XHFTRACE.XFH.
The Trace Player, cobfhrepro{n} must be used to read the tracing information file.
If the application runs in 64 mode the commands are cobfhrepro3 or cobfhrepro364.
If the application runs in 32 mode by default the commands are cobfhrepro2 or cobfhrepro264.
If the application is compiled with the compiler option FCD3 , the command is cobfhrepro3.
To display the sequence of the I-O verbs:
cobfhrepro{n} /d
To display the sequence of the I-O verbs about the file FIC1:
cobfhrepro{n} /d /nFIC1