JOB in RESWAIT for JOBs not specified in NOTWITH with WA ESP Edition
search cancel

JOB in RESWAIT for JOBs not specified in NOTWITH with WA ESP Edition

book

Article ID: 217299

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

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                         

Environment

Release : 11.4 & 12.0

Component : CA ESP WORKLOAD AUTOMATION

Resolution

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.