Can CA ESP WA recognize when a MANUAL jobs fails?
CA ESP WA does not know when a Manual job fails because there is no Encore or ESPCCCHK step inserted into the job when it is submitted.
By inserting a ESPCCCHK as the first step into the manual job and it does fail, CA ESP WA will recognize this failure and CSF will reflect it failed as well.
//ESPCCCHK EXEC PGM=CYBES080,PARM=ESPGROUP //STEPLIB DD DISP=SHR,DSN=ESP.SSCPLINK //SYSPRINT DD SYSOUT=(,) //SYSIN DD * CCCHK RC(1:4095) FAIL STOP /* //STEP0005 EXEC PGM=TESTPRG //STEPLIB DD DISP=SHR,DSN=TEST.LOADLIB //SYSPRINT DD SYSOUT=* /*
The PARM=ESPGROUP should be the same as is coded in the CA ESP WA initialization parameters for the ESPGROUP parameter.
The CCCHK statement should be coded just as you would in the CA ESP WA procedure for whichever return codes you want the job to be flagged as failed. In the above example, if program TESTPRG gets any non-zero return code then the job will be marked as failed.