HP-UX SNAplus2 Diagnostics Guide

Using Logging and Tracing
Tracing
Chapter 3 95
tracing, complete the following steps:
Step 1. Use the SNAMSG environment variable to specify one or two trace data
files. The syntax for the SNAMSG environment variable is:
file1
[:
file2
]
Specify the following parameters:
file1
Name of the trace file
file2
Optionally included name of a second trace file. Use
a colon to separate the two file names.
For example:
Type the following from the command line to trace to two files:
export SNAMSG=file1.trc:file2.trc
Type the following from the command line to trace to one file:
export SNAMSG=file.trc
Step 2. 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 SNATRACESIZE environment variable. For more
information about how to use SNATRACESIZE, see “Controlling Trace
File Contents”.
The size of each message traced can be controlled using the SNATRUNC
environment variable, as described in “Controlling Trace File Contents”.
Tracing of the 3270 emulation program or RJE workstation is always
active if the SNAMSG environment variable is set. Tracing cannot be
turned on and off while the program is running.
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 file name. If
you do not specify a full path for the trace file or files, SNAplus2 uses the
directory from which you start the application.
3270 Emulation Program and RJE Workstation Trace File
Contents
The trace data for a single message can occupy more than one line in the