IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

A query on condition code handling in JCL.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Mukesh Pandey

Active User


Joined: 11 Nov 2008
Posts: 143
Location: India

PostPosted: Tue Nov 09, 2010 11:02 am
Reply with quote

Hi All,

Suppose we have 5 steps in a JCL as mentioned below.

STEP1

..
STEP2 COND=(0,NE)
--
STEP3 COND=(0,NE)
--
STEP4 COND=(0,NE)
--
STEP5 COND=(0,NE)


Now we have a bug in our enhancement and the STEP 2 has a possibility to return an RC of 04 which is acceptable.

How can we add an OR condition at steps STEP3, STEP4 and STEP 5 so that RC of less than or equal to 4 at step 2 does not make the successor steps to flush. we are not supposed to change the condition COND=(0,NE) at steps 3 , 4 and 5. need to only include and or condition.

The condition COND=((0,NE),(4,LT,STEP2)) at step 3,4 and 5 does not work and these steps gets flushed out when step2 returns ans RC of 4.

Please Suggest.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Nov 09, 2010 12:33 pm
Reply with quote

Mukesh Pandey wrote:
Please Suggest.

Please read the manuals.

You have been on this forum long enough to find out where the manuals are and to read them. This is a basic question that can easily be solved by reference to the manuals and your own testing.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Tue Nov 09, 2010 1:56 pm
Reply with quote

Morning Sir !

Instead of inconvenient COND=, you could use easy to handle IF constructs.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Nov 09, 2010 6:00 pm
Reply with quote

I do not believe that the requirement as you have stated it can be fulfilled.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top