Alert Processing to resubmit job after failure.

book

Article ID: 195167

calendar_today

Updated On:

Products

CA Workload Automation ESP Edition

Issue/Introduction

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



Cause

NOTIFY is not a command so the second alert will not issue the alert.

Environment

Release : 11.4

Component : CA ESP WORKLOAD AUTOMATION

Resolution

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.

JOB RCBJOBE                        
 RUN DAILY                         
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           
ENDJOB