Job abend monitor



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Job abend monitor

Postby aimin8828 » Tue Apr 23, 2013 6:38 pm

Dear all:

Background: We have online triggered jobs in production , as there is no monitor process, so sometimes when user raised incident, after checking we find the root cuase is that the online triggererd jobs failed several days ago.

So we want to build the monitor, we want to add below step as the notify step at the end of the Job. But the issue is, if the Job failed with JCL error or other issue that terminate the whole Job, for example, dataset not found or migrated file recall failed. all the downstream steps will skipped and the monitor will not work.

Could someone help to have a look and point out how to deal with this, thanks in advance.

// IF (ABEND OR RC NE 0) THEN
//LASTSTE FOR SNED OUT NOTIFY MAIL
// ENDIF
aimin8828
 
Posts: 9
Joined: Fri Mar 01, 2013 6:40 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Job abend monitor

Postby Blackthorn » Tue Apr 23, 2013 7:23 pm

Which job scheduler do you use?
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Job abend monitor

Postby aimin8828 » Tue Apr 23, 2013 7:33 pm

Blackthorn wrote:Which job scheduler do you use?

OPC(TWS), but these Online triggerred jobs are not contained in OPC as they may be triggerred anytime by user.
aimin8828
 
Posts: 9
Joined: Fri Mar 01, 2013 6:40 pm
Has thanked: 1 time
Been thanked: 0 time

Re: Job abend monitor

Postby Blackthorn » Tue Apr 23, 2013 7:36 pm

I was thinking you could use Event Trigger Tracking with the Jobname Replace option set to Yes. Then the jobs would be added in to TWS and flagged in the usual way if they fail.

That's the method we use if we want to alert the Ops to any failures in jobs submitted outside of TWS.

These users thanked the author Blackthorn for the post:
aimin8828 (Tue Apr 23, 2013 7:43 pm)
Blackthorn
 
Posts: 130
Joined: Tue Feb 01, 2011 7:12 pm
Has thanked: 1 time
Been thanked: 9 times

Re: Job abend monitor

Postby aimin8828 » Tue Apr 23, 2013 7:46 pm

Blackthorn wrote:I was thinking you could use Event Trigger Tracking with the Jobname Replace option set to Yes. Then the jobs would be added in to TWS and flagged in the usual way if they fail.

That's the method we use if we want to alert the Ops to any failures in jobs submitted outside of TWS.


Thank you Blackthorn :!:
aimin8828
 
Posts: 9
Joined: Fri Mar 01, 2013 6:40 pm
Has thanked: 1 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post