SNAX/APC Application Programming Manual

Application Prototype Simulator
SNAX/APC Application Programming Manual138786
4-5
Setting Up and Running APS
4. After SNAX/APC has completed the execution of the verb request, APS displays the
verb reply in the reply fields. Examine the reply fields to determine whether or not
the verb executed successfully.
Repeat these steps for each verb that you want to execute.
Setting Up and Running APS
APS is a SCREEN COBOL program and must run in a PATHMON environment under
the control of a terminal control process (TCP). You can set up the PATHMON
environment for APS in one of two ways: you can enter the PATHCOM commands to
set up the PATHMON environment yourself, or you can use the APCRUN utility. Each
method is explained below.
Setting Up the PATHMON Environment Yourself
Setting up a PATHMON environment for APS is the same as setting up a PATHMON
environment for SNAX/APC except that you must also set up the APS program and the
APS-SRV server (the hexadecimal editor).
APS is usually set up as a program in a PATHMON environment. The following
example shows the PATHCOM commands used to set up APS:
SET PROGRAM TCP SNAXAPC-TCP
SET PROGRAM TYPE T16-6520 INITIAL APS
SET PROGRAM TMF OFF
SET PROGRAM ERROR-ABORT OFF
SET PROGRAM PRINTER $S.#APS
ADD PROGRAM APS
In addition to APS, you must also set up the APS-SRV server, which is the hexadecimal
editor for APS. The following example shows the PATHCOM commands used to set up
APS-SRV:
RESET SERVER
SET SERVER PROCESS $HEX
SET SERVER PROGRAM APCHEX
SET SERVER LINKDEPTH 101
SET SERVER CPUS 0:1
SET SERVER NUMSTATIC 1
SET SERVER MAXSERVERS 1
ADD SERVER APS-SRV
For complete information on how to define programs and servers in a PATHMON
environment, see the NonStop TS/MP and Pathway System Management Guide and the
NonStop TS/MP and Pathway Management Reference Manual.
Using APCRUN to Set Up the PATHMON Environment
Instead of entering the PATHCOM commands yourself, you can use the APCRUN
utility to automatically set up the PATHMON environment for SNAX/APC and APS.