Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

A query on condition code handling in JCL.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: A query on condition code handling in JCL.
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: 8593
Location: Back in jolly old England

PostPosted: Tue Nov 09, 2010 12:33 pm    Post subject:
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: 755
Location: Germany

PostPosted: Tue Nov 09, 2010 1:56 pm    Post subject:
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: 1753
Location: Bloomington, IL

PostPosted: Tue Nov 09, 2010 6:00 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Omegamon for DB2 query ashek15 DB2 0 Wed Feb 15, 2017 11:25 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us