We need to have a setup in place where when a Windows/Mainframe job fails it should get automatically resubmitted once and if it fails for second time then it should send email to support team and ticket has to be raised.
1st Instance of Failure --- Job should be restarted automatically
2nd Instance of Failure --- Send email and ticket should be raised
NOTIFY is not a command so the second alert will not issue the alert.
Release : 11.4
Component : CA ESP WORKLOAD AUTOMATION
Within the scope of a job you can use IF logic that will check for the Submission number. If the submission is less than or equal to 1, first submission, and job
abend/fails it will use a NOTIFY that will resubmit the job. If the submission number is greater than 1 it will use a different NOTIFY to trigger an alert to open a ticket
and send an email to a MAILBOX that has been setup.
IF ESPAPSUB# LE 1 THEN -
NOTIFY ABEND FAILURE ALERT(RICK)
IF ESPAPSUB# GT 1 THEN -
NOTIFY RESUB ALERT(TEST) MAILBOX(BABRI02)
CCCHK RC(1:4095) FAIL