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?

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: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 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: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 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: 1058
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: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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

Postby shub2204 » Wed Jul 31, 2019 6:16 pm

Akatsukami wrote:
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

@dick sherrer
There are many jobs which are just sending data from mainfraime to other systems. If the ping to receiving server fails at a instant then job will abend. After few seconds if the server is Up, if it can restart itself it will not abend again.
shub2204
 
Posts: 6
Joined: Tue Jul 16, 2019 2:33 pm
Has thanked: 2 times
Been thanked: 0 time

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

Postby Robert Sample » Wed Jul 31, 2019 6:43 pm

@dick sherrer
There are many jobs which are just sending data from mainfraime to other systems. If the ping to receiving server fails at a instant then job will abend. After few seconds if the server is Up, if it can restart itself it will not abend again.
Mr. Scherrer passed away about 5 years ago. I doubt you'll get a response from him on your comment.

Furthermore, if there is a network outage (among other possibilities), the restart will continue to fail until the network problem is corrected -- which could be minutes to weeks depending upon the situation. So the concern remains about how many times the restart is allowed.
Robert Sample
Global moderator
 
Posts: 3719
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post