Trigger event with REPLACE and trigger ADD.
search cancel

Trigger event with REPLACE and trigger ADD.

book

Article ID: 226018

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Manually triggered application with REPLACE option is picking up tomorrow's date in ESP variables. 

 

Environment

Release : 11.4

Component :  ESP WORKLOAD AUTOMATION

Cause

An event is scheduled to trigger at 5am and triggers successfully. However, due to max generations of the application on CSF, the application failed to load. Deleted several older generations of the application to free up space. The event was manually triggered again with REPLACE option and the application loaded successfully. When the jobs started to execute the ESPSDATE variable was picking the date for the next business day.

                                  

Resolution

Reason for this behavior is once the event manager triggered the application with REPLACE the scheduled date for the event moved to the next day. Regardless if the application loads or not.

EXAMPLE: 

EVENT ID(CYBER.EVENT1)  SYSTEM(ESPM)  REPLACE 
SCHEDULE 05.00 DAILY STARTING THU 14TH OCT 2021    
INVOKE 'HLQ.ESP.TESTPROC(EVENT1)'            
ENDDEF        

In this case you want to trigger the event with an ADD. This will add the application to the current day and not advance the Schedule time.