HP-UX SNAplus2 R7 APPC Programmer's Guide

Sample Transaction Programs
Testing the TPs
To run the TPs, perform the following steps. Note that some of these steps involve updating the SNAplus2
conguration, which is usually performed by the System Administrator.
The TPs can run on the same computer, or on separate computers. In the following steps, the source computer is
the computer where the invoking TP
asample1 runs, and the target computer is the computer where the invoked
TP asample2 runs.
1. If you are running the TPs on separate computers, congure the communications link to support CP-CP sessions
between the source and target computers. See
HP-UX SNAplus2 Administration Guide for more information.
2. Congure a mode. Specify LOCMODE as the mode name. Leave the default values for the other parameters.
3. Congure a logical unit (LU) on the source computer for asample1 (the invoking TP). Set both the LU name
and LU alias to
TPLU1 (the LU alias specied in the asample1 program). Leave the default values for the
other parameters.
4. If you are running the TPs on separate computers, congure a partner LU alias on the source computer to
identify the target LU. Set the partner LU name to
netname.TPLU2, where netname is the SNA network
name of the target computer.
5. Congure an LU on the target computer for the invoked TP. Set both the LU name and LU alias to
TPLU2 (the
alias by which the asample1 program refers to the LU serving asample2). Leave the default values for the
other parameters.
6. Congure the invoked TP in the SNAplus2 invokable TP data le on the target computer. Refer to the HP-UX
SNAplus2 Administration Guide for more information.
For the TP name parameter, specify TPNAME2 (the name specied by the invoking TP).
For Full path to TP executable, enter the full path name of the executable le asample2.
For the User ID parameter, specify your HP-UX user ID on the target computer.
Leave the default values for other parameters.
7. Start the invoking program, asample1. This program requires one parameter, the full path name (on the target
computer) of the le to be displayed. For example:
asample1 /usr/john/myfile.text
8. Enter F or B to display blocks of the requested le.
9. Use Q to end program 1; program 2 will end as well.
269