CA Workload Automation ESP Edition Running jobs run on a specific day of month unless weekend.

book

Article ID: 15134

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

How to schedule jobs on certain days of month but not on weekends. Then adjusting job to run on a particular day.



Requesting that jobs run on the 15th business day of every month. Should the 15th fall on Saturday or Sunday how can I make it run on the Friday before?

Environment

Release: ENCWLA00200-11.4-Workload Automation-Restart Option-EE
Component:

Resolution

 Below is a job that will run on 15th day of month. If the 15th falls on a none workday the LESS 0 WORKDAY statement tells the job to run on the previous workday, which will be Friday. 

JOB RCBJOBE. 
RUN 15TH DAY OF MONTH LESS 0 WORKDAY 
ENDJOB 

 

If you want the job to run on Monday you would use PLUS 0 WORKDAY

JOB RCBJOBE. 
RUN 15TH DAY OF MONTH PLUS 0 WORKDAY 
ENDJOB