Running ESP jobs on a specific day of month unless weekend
search cancel

Running ESP jobs on a specific day of month unless weekend

book

Article ID: 15134

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to schedule jobs on certain days of the month but not on weekends in ESP Workload Automation system? Then adjusting the job to run on a particular day.

For example, jobs run on the 15th business day of every month. Should the 15th fall on Saturday or Sunday how to make it run on the Friday before?

Environment

Component: ESP Workload Automation
Release: ALL

Resolution

 Below is a job that will run on 15th day of the month. If the 15th falls on a non-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