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.htmlExample: 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
Original Message:
Sent: 05-19-2020 10:16 AM
From: Elliott Fitzgerald
Subject: Hold a Subapplication for July2-July8
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.