ESP job gets submit error ESP2578I MESSAGE FROM EVENT
Sample of application:
APPLY myapp
JCLLIB 'hlq.sysa.jcllib'
JOB myjoba
RUN WORKDAYS
RELEASE ADD(myjobb)
JOB myjobb
RUN WORKDAYS
RELEASE ADD(myjobx)
JOB myjobx
RUN WORKDAYS
DATASET 'hlq.sysb.jcllib'
ENDJOB
EXIT
ESP did not use the jcllib on the DATASET statement of myjobx. It used the global JCLLIB statement which does not contain member myjobx.
Root cause: missing ENDJOB statement for JOB myjoba, and myjobb .
The correct coding is below: (added the missing ENDJOB statement)
APPL myapp
JCLLIB 'hlq.sysa.jcllib'
JOB myjoba
RUN WORKDAYS
RELEASE ADD(myjobb)
ENDJOB
JOB myjobb
RUN WORKDAYS
RELEASE ADD(myjobx)
ENDJOB
JOB myjobx
RUN WORKDAYS
DATASET 'hlq.sysb.jcllib'
ENDJOB
EXIT
Note: If USERMOD 190 is activated, the event will fail to build, and generate the following error messages:
ESP0528E ERROR OCCURRED PROCESSING EVENT xxx.event
ESP0190E ENDJOB missing for job 'jobname'