We have one job that is coded with NOTWITH jobs. But there seems to be jobs added to the resource wait HELD for JOBs not specified on the NOTWITH. JOB XXX shows resource wait for JOB AAA, even no related NOTWITH is coded:
JOB XXX
NOTWITH (BBB.-)
RUN ANY
ENDJOB
JOB AAA
.....
RUN ANY
NOTWITH (DDD.-)
ENDJOB
Release : 11.4 & 12.0
Component : CA ESP WORKLOAD AUTOMATION
User error.
The root cause is the misplaced "NOTWITH (AAA.-)" after ENDJOB for JOB DDD. Then this NOTWITH will be applied to all following JOBs, including JOB XXX.
It works as expected after moving the above statement before ENDJOB.