I would like to trigger an event when a job goes overdue. I believe that if I can do this, then I can have that event do whatever I want it to do with the job, tasks etc. The particular use case that I have in mind is an Windows job that has been timing out recently. Since it is a cyclical job, I would like to force it complete once it has been running for a certain amount of time. I have been trying to create a variable based on the sum of REALNOW and OVERDUE. If this value reaches a certain ammount, then an event gets triggered with some variables passed in $USER1 and $USER2. However, I have yet to get it to work. While I prefer to do this at the job level, I have only been able to get ESP not to "complain" about the variable unless I move it to the application level, so currently it looks like this:
MAXRUNTIME = 5
DUE = ('REALNOW + MAXRUNTIME')
IF %DUE > '5' THEN DO
ESPNOMSG TRIGGER STOPUTIL ADD USER1('CC140W01') USER2('CC140W01')
Thanks in advance for your help!
Batch Scheduling Specialist
Please see the following link for the BlueCross BlueShield of Tennessee E-mail disclaimer: http://www.bcbst.com/email_disclaimer.shtm