 |
The most flexible way to start tracing is with an external default file.
To use this method:
- Place your trace statements in your defaults file, PROFILE ADMDEFS,
and ensure that the file is on your A-disk.
- Specify a destination for the trace output.
The trace records are normally written to a sequential file with the
file-identifier ADM00001 ADMTRACE A1. If you want to change the
file-name or file-type used, you can do so by specifying the CMSTRCE
external default in the source format defaults file. If the CMSTRCE
value is set to blank, the trace records are written to the virtual
printer, using spool file processing. To direct trace output to the
virtual printer, you should include the following default
specification in the external defaults file:
[label] ADMMDFT CMSTRCE=(,)
If you do not have enough space on your A-disk, you should first spool
the printer HOLD using the CP SPOOL command, and then spool your trace
output to a virtual printer.
- Run the application program or utility that you want to trace.
- When tracing is complete, spool the virtual printer NOHOLD if you now
want to print the trace output.
Remember to disable tracing when you have finished. You can do this by
erasing the TRCESTR statements from your defaults file, or by commenting
them out. To comment them out, place an asterisk (*) in column 1 of each
TRCESTR external default statement.
|