Using SCOPE or SCHEDULED command on an external job in ESP
search cancel

Using SCOPE or SCHEDULED command on an external job in ESP

book

Article ID: 51540

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How does the ESP look at the external job when using either SCOPE or SCHEDULED.   Is it based on the day the job was run or the day it was scheduled?

Example: 
Say you have an external that runs the next workday.
Does the job below run on its workday or after midnight of the workday.

JOB JOBA
RUN WORKDAYS
ENDJOB  

 

Environment

 

Resolution

ESP will look at the day the job was scheduled, and the external will look back at  JOBA to ensure it ran.

 JOB JOBA EXTERNAL APPLID(PAYROLL) + 
 SCHEDULED('TODAY LESS 1 WORKDAYS') 
     RUN NOW                        
     RELEASE JOBB                   
 ENDJOB