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: 1754
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Job failing with USER = 4093 REASON C... Pradeepa S ABENDS & Debugging 1 Wed May 17, 2017 3:35 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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