View previous topic :: View next topic |
Author |
Message |
Prabakar_S Beginner
Joined: 20 Dec 2006 Posts: 18 Topics: 7 Location: Chennai
|
Posted: Fri Jul 03, 2009 7:02 am Post subject: How is a FLUSH interpreted whe used with Condition codes? |
|
|
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
And thanks in advance !! |
|
Back to top |
|
|
Nic Clouston Advanced
Joined: 01 Feb 2007 Posts: 1075 Topics: 7 Location: At Home
|
Posted: Fri Jul 03, 2009 12:48 pm Post subject: |
|
|
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 |
|
|
Prabakar_S Beginner
Joined: 20 Dec 2006 Posts: 18 Topics: 7 Location: Chennai
|
Posted: Mon Jul 13, 2009 4:15 am Post subject: |
|
|
Thanks ! |
|
Back to top |
|
|
vini Intermediate
Joined: 12 Jan 2004 Posts: 240 Topics: 48 Location: Maryland
|
Posted: Tue Jul 14, 2009 1:49 pm Post subject: |
|
|
I guess ..there must be a some work-around to this concern. The experienced ones here would know for sure . |
|
Back to top |
|
|
Anuj Dhawan Intermediate
Joined: 19 Jul 2007 Posts: 298 Topics: 7 Location: Mumbai,India
|
Posted: Thu Sep 17, 2009 2:13 am Post subject: |
|
|
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 |
|
|
Terry_Heinze Supermod
Joined: 31 May 2004 Posts: 391 Topics: 4 Location: Richfield, MN, USA
|
Posted: Thu Sep 17, 2009 10:12 am Post subject: |
|
|
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 |
|
|
|
|