Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
8-1
8
Pathway Application Example
This section provides a sample Pathway application, including the commands that create
the PATHMON and PATHCOM processes, sample commands that configure Pathway
and define the components to be used, two SCREEN COBOL programs to illustrate
general programming concepts for terminals operating in block mode and for terminals
operating in conversational mode, and an associated server program written in COBOL.
The example can be duplicated exactly as shown by taking the following steps in the
order indicated:
1. Code the sample COBOL server program.
2. Compile and run the sample COBOL server program. Rename the default object
file RUNUNIT to EXSERV to correspond to the Pathway configuration.
3. Code the sample SCREEN COBOL application program.
4. Compile the sample SCREEN COBOL application program for terminals operating
in block mode. The object files default to POBJCOD and POBJDIR.
Compile and run the sample SCREEN COBOL application program for terminals
operating in conversational mode. (This program is just for illustration and does not
communicate with the server program included in this section.)
5. Code the Pathway configuration file, named PWCONFIG. Change the process
names $term01 and $term02 in the two SET TERM commands to legal terminal
names in your installation. For convenience, the second set of SET TERM
commands specifying $term02 can be eliminated without interfering with the
operation.
6. Set up an obey file that contains the PATHMON and PATHCOM run commands.
The PATHMON name $PM can be changed to any appropriate five-letter name.
7. Issue an OBEY command.
8. Issue the PATHCOM RUN command for the SCREEN COBOL application
program.
The following rules should be noted before attempting to establish this application:
The Pathway configuration is established through a command terminal. The
command terminal cannot be included in the configuration.
A Pathway system should allow more than one PATHCOM to communicate with
PATHMON at a time; therefore, the SET PATHWAY MAXPATHCOMS command
should never be set to 1. (The default is 5.)
The individual at the command terminal can issue appropriate commands and alter
the Pathway configuration online. This is accomplished by typing PATHCOM and
responding to the PATHCOM = prompt. If the PATHMON name is not $PM, this
PATHCOM command must include the $process-name parameter.