I have an appl that has several jobs in it. The first job has a Delaysub and a Latesub. This works fine. However, I'm having a difficult time trying to code something to indicate when the next jobs are late to send a notification. Can anyone help me? Thanks in advance for your help - it is appreciated!
JOB JOB1
DELAYSUB 19:00
LATESUB 19:01
RELEASE ADD(JOB2)AD
RUN DAILY
NOTIFY OVERDUE MAILBOX(ECM)
ENDJOB
JOB JOB2
LATESUB --- need something to indicate if JOB2 has not started within 1 minute of the completion of JOB1
RELEASE ADD(JOB3)
RUN DAILY
NOTIFY OVERDUE MAILBOX(ECM)
ENDJOB
JOB JOB3
LATESUB --- need something to indicate if JOB3 has not started within 1 minute of the completion of JOB2
RUN DAILY
NOTIFY OVERDUE MAILBOX(ECM)
ENDJOB