ESP Workload Automation

 View Only
  • 1.  Triggering a job to run after a step completes

    Posted Apr 30, 2019 02:31 PM

    Running release 11.4 of ESP and z/OS 2.2

     

    I would like to run job B after job A completes step030. I saw that there is a STEPRC command but this is not checked until job end (I'd like the job to run as soon as CC=0000). Any suggestions?



  • 2.  Re: Triggering a job to run after a step completes

    Broadcom Employee
    Posted May 02, 2019 08:40 AM

    Hi David,

     

    Firstly, please post in the new place for ESP in the future:

    https://communities.ca.com/community/ca-mainframe-workload-automation/content?filterID=contentstatus%5Bpublished%5D~category%5Bca-workload-automation-esp-edition%5D

     

    Note: This post will be moved shortly.

     

    You may consider use specify the two jobs with same resource requirement, and then add STEPEND statement for first job to release the resource when the step completes. See more on the doc link below:

    https://docops.ca.com/ca-workload-automation-esp-edition/11-4/en/reference/statements/stepend-statement-release-resources-at-end-of-step

     

    Hope this helps,

     

    Lucy



  • 3.  Re: Triggering a job to run after a step completes

    Posted May 02, 2019 01:26 PM

    Hi Lucy,

     

    I'm having a problem with the RESOURCE command, when I trigger the Application both jobs submit.

     

    My Application:

    APPL POPS999R                               
                                               
    JOB POPS999R                               
       MEMBER POPS999R                         
       RUN ANYDAY                              
       RESOURCE (1,TESTDRM)                    
       STEPEND STEPNAME(S020) RELRES(1,TESTDRM)
    ENDJOB                                     
                                               
    JOB POPS998R                               
       MEMBER POPS998R                         
       RESOURCE (1,TESTDRM)                    
       RUN ANYDAY                              
    ENDJOB           

     

    Output from RESDEF

     resdef testdrm list                  
    Resource TESTDRM  Enterprise Threshold
    *        *        Avail=1            

     

    Thank You for your help.                         



  • 4.  Re: Triggering a job to run after a step completes
    Best Answer

    Broadcom Employee
    Posted May 02, 2019 01:33 PM

    Hi David,

     

    You should use Renewable resource. 

     

    And for testing purpose, you may add HOLD for JOB POPS998R. Otherwise, randomly it can get the resource first.

     

    Lucy



  • 5.  Re: Triggering a job to run after a step completes

    Posted May 02, 2019 02:56 PM

    Thank You Lucy, that was the answer.