MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Next step execution even if previous step JCL errors
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Tue Dec 15, 2009 2:42 pm    Post subject: Reply with quote

This has nothing to do with the request. . .

The request is about something that has a jcl error not an abend.
_________________
All the best,

di
Back to top
View user's profile Send private message
computer
Beginner


Joined: 12 Jun 2007
Posts: 64
Topics: 17
Location: Hyderabad

PostPosted: Fri Jan 01, 2010 1:54 pm    Post subject: Reply with quote

I will suggest a simple solution, but cannot assure that its the most efficient solution.

Write a small program, this program will simply do a read on each file which your JCL is using. If any one of the file as REC-CNT=0 then set the RECTURN CODE of the program to 3 and if all the files are not empty then set the RC=0. This way you can control the running of all the steps with the RC set by your program.

Makw sure this should be the first step in your JCL.

Hope this helps you.

And wishing all a Happy New Year

Thanks,
Computer
Back to top
View user's profile Send private message
Nic Clouston
Advanced


Joined: 01 Feb 2007
Posts: 1075
Topics: 7
Location: At Home

PostPosted: Sat Jan 02, 2010 11:59 am    Post subject: Reply with quote

And what if a file could be empty at the successful end of a program?
_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Mon Jan 04, 2010 3:33 am    Post subject: Reply with quote

We're talking about JCL errors and not an abend during the course of JCL execution. Confused

E.g.:if step 3 has COND=EVEN mentioned and some JCL error occurs in step 2 then step 3 will not run while if an abend occurs in step2 , COND=EVEN will come itno effect and step 3 will execute.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Anuj Dhawan
Intermediate


Joined: 19 Jul 2007
Posts: 298
Topics: 7
Location: Mumbai,India

PostPosted: Mon Jan 04, 2010 3:37 am    Post subject: Reply with quote

ah, I did not realize that this thread went to second page my above response was for this
Quote:
COND=EVEN could be used to execute a step, even if a prior step abends.

_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group