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 

Process Step3 when Step2 Flush

 
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
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Tue May 19, 2009 5:38 am    Post subject: Process Step3 when Step2 Flush Reply with quote

I have a requirement.

In a job A, Step1 is executed and it issued RC 20. Because of RC 20, step2 was not executed (means flushed).

My requirement is Step3 has to be executed only when Step2 runs and issued RC 10.

I gave the condition as COND=(10,NE,#01). It is working fine when Step2 runs and issue RC10. Incase, when Step2 flushed because of RC20 of Step1, even then Step3 is executing.

Can anybody have an idea, how to handle this situation.

Thanks,
Shankar.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


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

PostPosted: Tue May 19, 2009 6:38 am    Post subject: Reply with quote

you could solve it with IF/THEN/ELSE logic.

best place to look is in the JCL manuals.

Here is a quick start link Refer chapter-10 in this jcl tutorial
_________________
Dick Brenholtz
American living in Varel, Germany


Last edited by dbzTHEdinosauer on Tue May 19, 2009 10:38 am; edited 1 time in total
Back to top
View user's profile Send private message
Terry_Heinze
Supermod


Joined: 31 May 2004
Posts: 391
Topics: 4
Location: Richfield, MN, USA

PostPosted: Tue May 19, 2009 10:27 am    Post subject: Reply with quote

First, use the IF/THEN/ELSE/ENDIF logic that Dick suggests to make it more readable (maintainable) to those who follow you. Second, on which step is your COND parameter coded on? Please post your JCL using BBCode.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
Shankarganesh_gopal
Beginner


Joined: 24 May 2005
Posts: 36
Topics: 20
Location: chennai

PostPosted: Wed May 20, 2009 10:26 pm    Post subject: Reply with quote

I got it resolved using IF/THEN/ELSE.

Thanks a lot all of you.
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
Page 1 of 1

 
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