ESP commands and requests (that are entered from a ESP Workload Automation Proxy subsystem) may be routed to the ESP Master subsystem for execution by using the command "ROUTING MASTER".
"ROUTING MASTER" is also an initialization statement of the ESP Workstation Server started task. If "ROUTING MASTER" is coded in the ESP Proxy subsystem init parm ESPPARM, the following messages will be issued when the Proxy starts:
ESP806W FOLLOWING STATEMENT FROM ESPPARM HAS AN UNDEFINED PARAMETER
ESP803W ROUTING MASTER
How to set "ROUTING MASTER" when the ESP Proxy subsystem starts?
Component: ESP Workload Automation
Release: ALL
1. Define an event:
EVENT ID(test.routing) SYSTEM(-) REPLACE
Proc
ESP ROUTING MASTER
EndProc
2. Add statement "TRIGGER test.routing ADD" to the Proxy's ESPWARM member.
Explanation: When the Proxy subsystem starts. event "test.routing" will be triggered, and executes command "ROUTING MASTER". All commands issued against the Proxy subsystem will be routed to the Master after the Proxy comes up.
To send commands/requests to the Master subsystem on an as-needed basis, execute command "ROUTING MASTER" from the ESP procedure.
Example:
APPL myappl
myvar = '%ESPAHH%ESPAMN%ESPASS'
ESP ROUTING MASTER
REXXON
/* Proxy cannot update the Global Variable table */
/* VPUT must be executed on the master */
"VPUT (myvar) TABLE(gblvartab)
REXXOFF
JOB myjob
RUN TODAY
ENDJOB