How to auto restart the job/step for a particular abend?



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

How to auto restart the job/step for a particular abend?

Postby Kishore_mf » Tue May 28, 2013 11:13 pm

Hi,

I want my job step to restart automatically, if it fails for one particular abend.

For eg., Job step to restart of its own when it abends of U0777 user abend and NOT for any other abends.

Please help.
Kishore_mf
 
Posts: 1
Joined: Tue May 28, 2013 10:47 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How to auto restart the job/step for a particular abend?

 

Re: How to auto restart the job/step for a particular abend?

Postby Robert Sample » Tue May 28, 2013 11:19 pm

If your site is using a job scheduler such as Zeke or CA-7 or Tivoli, work with the site support group to implement your requirement.

If your site is not using a job scheduler, what you want to do is not possible -- "restart automatically" implies some form of job scheduler.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: How to auto restart the job/step for a particular abend?

Postby dick scherrer » Wed May 29, 2013 12:07 am

Hello and welcome to the forum,

If the job just abended, why would running it again succeed :?

Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . . :roll:
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: How to auto restart the job/step for a particular abend?

Postby Akatsukami » Wed May 29, 2013 12:27 am

dick scherrer wrote:Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . . :roll:

If it prevents one software engineer from getting called out at 0-dark-thirty... :P
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day
User avatar
Akatsukami
Global moderator
 
Posts: 1053
Joined: Sat Oct 16, 2010 2:31 am
Location: Bloomington, IL
Has thanked: 6 times
Been thanked: 51 times

Re: How to auto restart the job/step for a particular abend?

Postby Robert Sample » Wed May 29, 2013 12:38 am

Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . .
WAY back in my undergraduate days, when the primary printers for the entire school were a couple of dot matrix printers, an engineering student tied up both printers for an hour printing repeated compiles of a FORTRAN program. When asked why he ran the same program, with the same syntax error, through the compiler so many times, the reply was "I hoped that maybe one of them would work".
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post