ESP will submit one JCL to another JESNODE, where there is no ESP instance. How to track the status of this JCL?
Release : 12.0
Component: ESP Workload Automation
#1 ESP can schedule this batch JCL (VIEWDB) as below, and VIEWDB will be routed to SYSE for execution, however the JOB status in ESP (on SYSH) can't be updated:
APPL VIEWDB
JOB VIEWDB
...
ROUTE /*XEQ SYSE
ENDJOB
#2 OPS/MVS on SYSE monitors the jobend message for JOB VIEWDB, like below:
$HASP395 VIEWDB ENDED - RC=0000
#3: And when OPS/MVS detects the message, it will submit the ESPBTCH JCL with proper information, like JOB name, JOB status, return code etc. And ESPBTCH will have /*XEQ SYSH routing card, so that it will execute on SYSH, also it will contain an ESP command. Here is a sample JCL:
//ESPBTCH JOB
/*XEQ SYSH
//ESP EXEC PGM=ESP,PARM='SUBSYS(subsys)'
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
MGRMSG * . . . VIEWDB/VIEWDB.0/MAIN State +
FAILED Cmpc(1) SetEnd
//