ESP Workload Automation

 View Only
  • 1.  Hold a Subapplication for July2-July8

    Posted May 19, 2020 10:17 AM
    I need to hold a entire sub application that runs daily.  The subappl is not to run at all on July 2 – July 8, 2020.  Is it possible to do this? Here is what I was thinking. IF TODAY ('JULY 2 2020') THEN SUBAPPL HOLD

    Any help would be greatly appreciated.


  • 2.  RE: Hold a Subapplication for July2-July8

    Broadcom Employee
    Posted May 19, 2020 10:42 AM
    Hi Elliott,

    You can use DESELECT with IF logic, please see examples in the doc link below:
    https://techdocs.broadcom.com/content/broadcom/techdocs/us/en/ca-mainframe-software/automation/ca-workload-automation-esp-edition/12-0/reference/statements/deselect-statement-deselect-jobs-or-subapplications.html

    Example: Select and deselect multiple jobs
    In the following example:
    The ACCPAY and BILLING subapplications are selected
    PAYJOB10 and PAYJOB11 are selected
    The BILLING subapplication is not selected on the last workday of the month
    ACCJOB2 is not selected on Mondays:

    APPL PAYROLL
    JCLLIB 'CYBER.JCL.CNTL'
    JOB ACCJOB1
    SUBAPPL ACCPAY
    ENDJOB
    JOB ACCJOB2
    SUBAPPL ACCPAY
    ENDJOB
    JOB BILJOB1
    SUBAPPL BILLING
    ENDJOB
    JOB BILJOB4
    SUBAPPL BILLING
    ENDJOB
    JOB PAYJOB10
    ENDJOB
    JOB PAYJOB11
    ENDJOB
    SELECT (ACCPAY,BILLING) SUBAPPL
    SELECT (PAYJOB10,PAYJOB11)
    IF TODAY('LAST WORKDAY OF MONTH') THEN DESELECT BILLING - SUBAPPL
    IF TODAY('MONDAY') THEN DESELECT ACCJOB2
    ------------

    Hope this helps,

    Lucy


  • 3.  RE: Hold a Subapplication for July2-July8

    Posted May 19, 2020 10:48 AM

    Thanks Lucy, and just to confirm I can use the deselect statements even if the individual jobs have run statements to "Run Daily"?

     






  • 4.  RE: Hold a Subapplication for July2-July8

    Broadcom Employee
    Posted May 19, 2020 10:55 AM
    The answer is Yes. I just tested with below:
    APPL TES5
    JCLLIB 'ESP.PSS.JCLLIB'

    SUBAPPL SUB1
    JOB SB1
    MEMBER CYBLZ
    RUN DAILY
    REL (SC1)
    ENDJOB
    JOB SC1
    MEMBER CYBLZ
    RUN DAILY
    POSTREQ SD1
    ENDJOB
    JOB SD1
    MEMBER CYBLZ
    ENDJOB
    IF TODAY('TUESDAY') THEN DESELECT SUB1 SUBAPPL
    --------

    Then NO job was selected to run for today.

    Lucy