IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to adjust a job to automatically handle ABENDS


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ranga_subham

New User


Joined: 01 Jul 2005
Posts: 51

PostPosted: Tue Mar 06, 2007 11:29 am
Reply with quote

I have a production job that does the following.

First 17 steps check different datasets for emptiness. If empty, gives a return code of 200.

Next 5 steps sends an email to customer if the first 5 steps issues other than return code 200.

Next 12 steps abend the job if the rest of 12 steps gives return code OTHER than 200.

Now, the job that ran yesterday was abended with a JCL error in step JS080 because the dataset used in step JS080 was not found. We had to restart the job from JS090. This caused an abend in step JS230 since the COND code referred here is of JS060 which was skipeed because we restarted the job from JS090.

I would like to know how to adjust this JCL to avoid such an inconvenience.

Please suggest.

TIA.
Back to top
View user's profile Send private message
dineshness

New User


Joined: 25 Dec 2006
Posts: 63
Location: Perambalur

PostPosted: Tue Mar 06, 2007 9:08 pm
Reply with quote

I think there is no way to avoid this, as the refer back step is not at all executed when the job is restarted. May be you have to change the condition statement.

Dinesh.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Mar 06, 2007 11:02 pm
Reply with quote

Hello,

Only knowing what was originally posted, my suggestion would be to eliminate the "empty" testing and setting codition code(s).

Depending on content or "empty", jcl can be program-created on the fly to submit the required job(s)/step(s) thru the internal reader and the restart issues will go away. The code that creates the jcl would also be able to "restart-in-the-middle". Only needed processes would be submitted eliminating the COND issues.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Batch call online program, EXCI task ... CICS 3
No new posts trigger enter key automatically call ... CICS 17
No new posts Recovery Routine/Abend exit to releas... PL/I & Assembler 14
No new posts DFSORT to handle in between specific ... DFSORT/ICETOOL 6
No new posts HANDLE AD2R CICS ABEND CICS 4
Search our Forums:

Back to Top