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 1, 2  Next
 
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
maverick05
Beginner


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Mon Nov 09, 2009 5:38 pm    Post subject: Next step execution even if previous step JCL errors Reply with quote

Hi,

How to move forward if a prior step fails with JCL errors in a JCL with many steps. Ex: If previous step fails because a dataset doesn't exist,my job fails. I can't use condition code here since it is not applicable for JCL errors.

Is their any alternative or shortcut to bypass jcl errors caused by prior steps?

Tx
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Nov 09, 2009 5:41 pm    Post subject: Reply with quote

No.

What you might do is ensure the datasets exist in an early step and then the run would not terminate in the middle due to a missing dataset.
_________________
All the best,

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


Joined: 15 May 2005
Posts: 72
Topics: 24

PostPosted: Mon Nov 09, 2009 5:45 pm    Post subject: Reply with quote

As specified in the post,there are many steps and verifying the existence of each step takes time.
Back to top
View user's profile Send private message
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Nov 09, 2009 5:52 pm    Post subject: Reply with quote

The suggestion is not to verify each step - one step in the beginning will suffice.

And verifying should not take any significant time.
_________________
All the best,

di
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: Tue Nov 10, 2009 5:04 am    Post subject: Reply with quote

Quote:
How to move forward if a prior step fails with JCL errors in a JCL with many steps
This is a specific case you wish for, IBM is not goona change this usual behavior soon.

Once you've submittd the job -- it's under the control of intrepreter and it can't be changed, do whatever you want to before you submit it, period.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
jhandu
Beginner


Joined: 01 Oct 2008
Posts: 6
Topics: 0
Location: India

PostPosted: Tue Nov 10, 2009 8:06 am    Post subject: Reply with quote

1) if there is a utility to check jcl syntax, use it before submitting
2) If there is no such utility, use TYPRUN=JSCAN in the jobcard
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Tue Nov 10, 2009 8:28 am    Post subject: Reply with quote

Quote:

1) if there is a utility to check jcl syntax, use it before submitting
2) If there is no such utility, use TYPRUN=JSCAN in the jobcard


neither of the above will check on ds existence.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 10, 2009 12:31 pm    Post subject: Reply with quote

dbzTHEdinosauer wrote:
Quote:

1) if there is a utility to check jcl syntax, use it before submitting
2) If there is no such utility, use TYPRUN=JSCAN in the jobcard


neither of the above will check on ds existence.


AFAIK the JCLcheck products do check if the dataset existed

kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Nov 11, 2009 7:07 am    Post subject: Reply with quote

I stand corrected.
_________________
Dick Brenholtz
American living in Varel, Germany
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: Wed Nov 11, 2009 7:33 am    Post subject: Reply with quote

I believe response from Dick is appropriate keeping the origianl request from TS in mind...
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
RonB
Beginner


Joined: 02 Dec 2002
Posts: 93
Topics: 0
Location: Orlando, FL

PostPosted: Wed Nov 11, 2009 7:47 am    Post subject: Reply with quote

JCLCheck et. al., can only test for the existence of a dataset ( or GDG Base ) at the time that THEY, themselves, are run. Obviously, they cannot accurately determine whether OLD/SHR datasets or GDG generations will exist at the time the JOB actually RUNS.
Some job schedulers ( e.g. CA-7 ) "simulate" job step executions when staging a JOB to determine whether such datasets will exist by the time a given step is executed ( assuming that prior steps execute successfully ). E.G. if STEP7 references a dataset that doesn't exist at JOB initiation, but will be created in STEP3.
A good solution in any case would be to run an IDCAMS VERIFY step where appropriate to set return codes that can be tested.
_________________
A computer once beat me at chess, but it was no match for me at kick boxing.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Nov 11, 2009 9:56 am    Post subject: Reply with quote

Quote:
I believe response from Dick is appropriate keeping the origianl request from TS in mind...


you mean my not knowing what I was talking about???
_________________
Dick Brenholtz
American living in Varel, Germany
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: Fri Nov 13, 2009 6:07 am    Post subject: Reply with quote

dbzTHEdinosauer wrote:
you mean my not knowing what I was talking about???
MY response was in the cotext of this
kolusu wrote:
dbzTHEdinosauer wrote:
1) if there is a utility to check jcl syntax, use it before submitting
2) If there is no such utility, use TYPRUN=JSCAN in the jobcard



neither of the above will check on ds existence.


AFAIK the JCLcheck products do check if the dataset existed
mmm..I was on your side Dick..
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Fri Nov 13, 2009 9:02 am    Post subject: Reply with quote

well, since I did not elaborate as did RobB, my comment about JCLcheck - at face value - was false.

I appreciate your 'protection', but my big mouth often gets me into trouble,
no need for others to drown, also.

My biggest grip about these boards is lack of 'proper terminology'.
Computers are precision instruments and require precise verbiage.
I crossed that line with my post, and what Kolusu's posted was valid.
RonB, as is his habit, made a precise comment;
I felt no need to add or attempt to defend myself.

thx anyway, did not mean to off you.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kanitha-mvs
Beginner


Joined: 17 May 2006
Posts: 26
Topics: 17

PostPosted: Tue Dec 15, 2009 9:03 am    Post subject: Reply with quote

COND=EVEN could be used to execute a step, even if a prior step abends.
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 1, 2  Next
Page 1 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