Page 1 of 1

Tivoli TWS and Abended job

PostPosted: Mon Aug 01, 2016 2:01 pm
by samb01
Hello,

is it possible to complete automaticly a job when this job is abended ?

For example, my job is avebded because a step had a RC=U3000

I would like this job was set to the status "complete" when there is an abend. We don't want to see it in the "Error Running".

Thank's for your help.

Re: Tivoli TWS and Abended job

PostPosted: Mon Aug 01, 2016 3:04 pm
by Aki88
Hello,

IIRC, a user can set the error tracking option to 'no' in TWS which basically tells TWS to ignore job errors if any.
A quick search returned this. Hope this is what you're looking for.

A word of caution though, you'd really want to check with your site-support/owners-of-the-job-in-question on, whether the said approach is fine; these stop mechanisms are designed as additional fail-safe knowing that programmers can err, removing one can open up a can-of-worms.

Re: Tivoli TWS and Abended job

PostPosted: Fri Aug 05, 2016 8:27 pm
by Blackthorn
Setting error tracking to N will result in the job completing "successfully" for any failure.

It sounds perhaps as though the TS only wants this to happen for a U3000 abend. In this case you need to use the NOERROR parm on the JTOPTS initialisation statement. This will allow you to specify that a particular return code in a particular step of a particular job should be treated as acceptable.

Re: Tivoli TWS and Abended job

PostPosted: Sat Aug 06, 2016 2:56 am
by samb01
Hello, thank's blackthorn for your help. It's really usefull to know it. Have you an example to Update the NOERROR parameters please ?

Re: Tivoli TWS and Abended job

PostPosted: Mon Aug 08, 2016 2:34 pm
by Blackthorn
Unfortunately not, I'm not currently working with TWS. But it's well documented in the manuals.