ESP Workload Automation

 View Only
  • 1.  Using a RESOURCE Rule

    Posted Jul 02, 2021 10:05 AM

    Good morning CA community,
    I have a question regarding using a RESOURCE rule.  I created a job in our test environment that is to wait until a started task is brought down. 

    JOB JOBESTFF
    RESOURCE (1,D10X0102)
    RUN DAILY
    DATASET 'ODTEEBF.JCL.CNTL'
    ENDJOB

    The JCL for this job is a simple IEFBR14 job so that I can test some functionality of certain features.  I noticed that even when the resource is up, the job still runs successfully.  I am not sure what I am doing wrong, but basically  I want the job only to run when the resource is down.  The resource is brought down manually by Operator intervention. 
    Any help or suggestions would be greatly appreciated.



  • 2.  RE: Using a RESOURCE Rule

    Posted Jul 02, 2021 10:36 AM

    The statement RESOURCE (1,D10X0102) says that this job requires quantity 1 or resource D10X0102.

    If the resource is available the job runs.

    Is that RESOURCE used by any other job?

    If not set Resource D10X0102 to 0 (NOT available)

    Then reverse what Operators do and have them set Resource D10X0102 to 1 (Available)

    Would that resolve your issue?



    ------------------------------
    Senior Systems Analyst
    UPS
    United States
    ------------------------------



  • 3.  RE: Using a RESOURCE Rule

    Broadcom Employee
    Posted Jul 05, 2021 05:49 PM

    Hi Elliott,

    The ESP resource has no direct link to a STC. So if your STC name is D10X0102, then resource D10X0102 has no relationship with it.

    Based on the requirement, the easiest solution is to define the STC as a MANUAL JOB, like:

    JOB D10X0102 MANUAL

      RUN ANY

     REL ADD(JOBESTFF)

    ENDJOB

    Then JOB JOBESTFF will wait until D10X0102 ends.

    Note: be sure that ESP will track this STC. 

    Hope this helps,

    Lucy