HP-UX TN3270 Administration Guide

Configuring TN3270
Overview of the Configuration Process
Chapter 330
a syntax error in the text file, it writes a message to standard error and
does not create a binary configuration file. For syntax errors, the
program continues to parse the text file and writes a separate message
for each error it finds. Correct the errors and run tncfgtcp again.
If no errors are found,TN3270 creates the binary configuration file in the
same directory as the text file. The binary configuration file has the same
name as the text file but with the extension .cfg instead of .txt.
Specifying the Path for the tncfgtcp Program
The tncfgtcp program is stored with all other executable programs in a
directory specific to TN3270, /opt/tn3270/bin. Specify the path to this
directory in one of the following ways:
Add the directory to your PATH environment variable in your .login
or .profile file before initially running the programs.
Include the directory name each time you run the programs, as
follows:
/opt/tn3270/bin/tncfgtcp newfile.txt
NOTE The sample command lines shown in this guide assume that you have
added the directory to your PATH environment variable. Therefore, they
do not include the directory name.
Creating Multiple Configuration Files
When a user starts the TN3270 program, TN3270 obtains its
configuration information from the file /etc/opt/tn3270/com.cfg. This
file is known as the running configuration file..
You can create several different TN3270 configurations and save them in
different configuration files. To use a particular configuration, copy its
binary configuration file to com.cfg in the appropriate subdirectory. Also
copy the text configuration file to com.txt in the same subdirectory so
that you can easily check details of the current configuration.
It is possible to write a new configuration directly to the running
configuration file /etc/opt/tn3270/com.cfg by using the file
/etc/opt/tn3270/com.txt as input. However, any active copies of the