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.
How to auto restart the job/step for a particular abend?
-
- Posts: 1
- Joined: Tue May 28, 2013 10:47 pm
- Skillset: cobol,jcl.db2,ims,idms.pli
- Referer: web search
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: How to auto restart the job/step for a particular abend?
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.
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.
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: How to auto restart the job/step for a particular abend?
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 . . .
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 . . .

Hope this helps,
d.sch.
d.sch.
- Akatsukami
- Global moderator
- Posts: 1058
- Joined: Sat Oct 16, 2010 2:31 am
- Skillset: Rexx, JCL, DB2/SQL, TSO/ISPF, PL/I
- Referer: ibmmainframes
- Location: Bloomington, IL
- Contact:
Re: How to auto restart the job/step for a particular abend?
dick scherrer wrote:Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . .
If it prevents one software engineer from getting called out at 0-dark-thirty...

"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
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: How to auto restart the job/step for a particular abend?
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".Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . .
Re: How to auto restart the job/step for a particular abend?
Akatsukami wrote:dick scherrer wrote:Hopefully, there is no thought of letting it abend a few thousand times until somehow it actually runs . . .
If it prevents one software engineer from getting called out at 0-dark-thirty...
@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.
-
- Global moderator
- Posts: 3720
- Joined: Sat Dec 19, 2009 8:32 pm
- Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
- Referer: other forum
- Location: Dubuque, Iowa, USA
Re: How to auto restart the job/step for a particular abend?
Mr. Scherrer passed away about 5 years ago. I doubt you'll get a response from him on your comment.@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.
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.
-
- Similar Topics
- Replies
- Views
- Last post
-
-
Restart a program that has only GSAM output files
by RajaniSiddineni » Thu Jul 22, 2021 7:48 pm » in IMS DB/DC - 1
- 3969
-
by Isakshields
View the latest post
Mon Aug 09, 2021 5:57 pm
-
-
- 10
- 3505
-
by willy jensen
View the latest post
Tue Oct 31, 2023 8:36 pm
-
- 9
- 2694
-
by sergeyken
View the latest post
Thu Jan 09, 2025 11:59 pm
-
-
Sending o/p file's content to spool withot adding extra step
by Misha786 » Tue Jan 12, 2021 6:51 pm » in JCL - 4
- 2013
-
by sergeyken
View the latest post
Tue Jan 12, 2021 11:28 pm
-
-
- 0
- 2130
-
by MainframeCoder
View the latest post
Thu Oct 14, 2021 6:13 am