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 

How is a FLUSH interpreted whe used with Condition codes?

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


Joined: 20 Dec 2006
Posts: 18
Topics: 7
Location: Chennai

PostPosted: Fri Jul 03, 2009 7:02 am    Post subject: How is a FLUSH interpreted whe used with Condition codes? Reply with quote

Hi,

I have a JCL coded like this :

There are 6 steps - R010 thru R060.

1. Step R010 - Returned zero

2. Steps R020, R030, R040 & R050 - conditioned out using COND=(0,NE) and hence were FLUSHed

3. Step R060 - has COND=((0,NE,R020),(0,NE,R030)).

We were expecting R060 also to be FLUSHed, as neither R020 nor R030 returned a zero, but this step was executed. Can someone kindly explain why this step was not FLUSHed?

Apologies if this is something very basic that I should've picked up very early in my 3 years of Mainframe experience Embarassed

And thanks in advance !!
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: Fri Jul 03, 2009 12:48 pm    Post subject: Reply with quote

From the JCL manual section 16.5 COND parameter
Code:
If a test specifies a previous step that was bypassed, the system evaluates the COND parameter as false.

_________________
Utility and Program control cards are NOT, repeat NOT, JCL.
Back to top
View user's profile Send private message
Prabakar_S
Beginner


Joined: 20 Dec 2006
Posts: 18
Topics: 7
Location: Chennai

PostPosted: Mon Jul 13, 2009 4:15 am    Post subject: Reply with quote

Thanks !
Back to top
View user's profile Send private message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Tue Jul 14, 2009 1:49 pm    Post subject: Reply with quote

I guess ..there must be a some work-around to this concern. The experienced ones here would know for sure Smile.
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: Thu Sep 17, 2009 2:13 am    Post subject: Reply with quote

Quote:
there must be a some work-around to this concern
What kind of work around do you expect here? System did what he was told to do.
_________________
Regards,
Anuj
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: Thu Sep 17, 2009 10:12 am    Post subject: Reply with quote

Maybe the reverse logic of the COND parameter has confused me once more (which is why I prefer to use IF/THEN/ELSE/ENDIF), but shouldn't steps R020 through R050 have executed instead of being flushed? I would have guessed that R020 through R050 would have flushed if COND=(0,EQ) had been coded on them.
_________________
....Terry
Back to top
View user's profile Send private message Send e-mail
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