|
|
|
|
This section describes how you can start and stop tracing, how you specify the names of trace files, and how you can control the size of trace files.
The
file1 [ : file2 ]
Specify the following parameters in the
Name of the trace file.
Optionally included name of a second trace file. Use a colon to separate
the two file names. If you specify two trace files, when one file has reached
the maximum size (as specified by the
Trace data must always be written to text files. Do not specify the name of a device (such as /dev/tty) or a print spooler as a trace filename. If you do not specify a full path for the trace file or files, SNAP-IX TN3270 uses the directory from which you start the application.
The
The
file1 [ : [ file2 ] [ : ] ]
Specify the following parameters in the
Name of the trace file.
Optionally included name of a second trace file. Use a colon to separate
the two file names. If you specify two trace files, when one file has reached
the maximum size (as specified by the
The final colon indicates that tracing is active as soon as the HLLAPI application is started. If tracing is not active when the application is started, it can be activated from within the application using the HLLAPI function Set Session Parameters. (For more information, see Controlling Tracing from Within a HLLAPI Application.) If you specify only one file name, use two colons to make tracing active as soon as the application is started.
If you specify only one file name, the size of the trace file has no
limit. If you specify two file names, the maximum size of each trace file
is specified by the
Trace data must always be written to text files. Do not specify the name of a device (such as /dev/tty) or a print spooler as a trace filename. If you do not specify a full path for the trace file or files, SNAP-IX TN3270 uses the directory from which you start the application.
The following examples illustrate the
file1.trc:file2.trc
Trace to file1 and file2. Tracing is inactive when the HLLAPI application is started.
filea.trc::
Trace to one file (filea.trc) of unlimited size. Tracing starts when the HLLAPI application is started.
file1.trc:file2.trc:
Trace to file1 and file2. Tracing starts when the HLLAPI application is started.
The and options of the HLLAPI Set Session Parameters function enable you to trace the specific section of a HLLAPI program where a problem is being encountered (without having to trace the whole application). Tracing can be activated at the start of this section and deactivated at the end of it. Refer to the SNAP-IX HLLAPI Programmer's Guide for more information.
To use this facility, the
You can disable the and
options by using the
The
If the
To use
The following environment variables control the amount of data stored in trace files:
Specifies the maximum length in bytes of each entry in a trace file.
This variable applies both to HLLAPI trace files (specified by the
Set this variable to a decimal number. If a message has more characters
than this value, the excess characters are truncated. For example, setting
Specifies the maximum size in bytes of each trace file when using two
files. This value applies both to HLLAPI trace files (specified by the
Set this environment variable to a decimal number. When SNAP-IX TN3270
is writing a message to one of the trace files and the maximum file size is
reached, SNAP-IX TN3270 clears the other trace file and continues tracing
to that file. This ensures that the maximum amount of disk space taken up
by a pair of user-space trace files is approximately twice the value of
If you do not set
The
If you are tracing to two files, the files continue to be reset as normal
when the maximum file size is reached, but they will not be reset when an
application starts tracing for the first time. If you are tracing to one file,
setting
To cancel the setting of
|
|
|
|
|