Page 1 of 1

Job abend monitor

PostPosted: Tue Apr 23, 2013 6:38 pm
by aimin8828
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

Re: Job abend monitor

PostPosted: Tue Apr 23, 2013 7:23 pm
by Blackthorn
Which job scheduler do you use?

Re: Job abend monitor

PostPosted: Tue Apr 23, 2013 7:33 pm
by aimin8828
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.

Re: Job abend monitor

PostPosted: Tue Apr 23, 2013 7:36 pm
by Blackthorn
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.

Re: Job abend monitor

PostPosted: Tue Apr 23, 2013 7:46 pm
by aimin8828
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 :!: