When I submit job outside ESP it runs with RC=0012 but when I run it through ESP it fails with JCL error.
ESP493I JOB TERMINATED BY CCCHK STOP REQUEST
IEF453I XXXXXXXX - JOB FAILED - JCL ERROR
$HASP395 XXXXXXXX ENDED - RC=0012
Component: ESP WORKLOAD AUTOMATION
Release: 12.0
Whenever you use the CCCHK RC(1:4095) FAIL STOP.
If the Condition matches FAIL STOP The job will issue message 453I. This message indicates the job failed with a JCL error, although there actually is no JCL error.
Change: CCCHK in Job definition using example below:
From:
CCCHK RC(0) OK CONTINUE
CCCHK RC(1:4095) FAIL STOP
To:
CCCHK RC(0) OK CONTINUE
CCCHK RC(1:4095) FAIL CONTINUE
N/A