Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to adjust a job to automatically handle ABENDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to adjust a job to automatically handle ABENDS
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    Post subject:
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

Site Director


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

PostPosted: Tue Mar 06, 2007 11:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Adjust Heading Position in Easytrieve thesumitk CA Products 4 Mon Dec 21, 2015 3:26 pm
No new posts How to handle AISS abend ? robin ma 2015 CICS 1 Mon Nov 09, 2015 1:47 pm
No new posts IEFZB476 getting various 0C4 abends Grant Goodale PL/I & Assembler 18 Sat Sep 12, 2015 9:27 pm
No new posts Vsam file updated to RLS disabled aut... biswaranjan Parimanik JCL & VSAM 10 Fri May 01, 2015 12:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us