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

Document ID : KB000015134
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

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

Question:

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?

Answer:

 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