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: 757
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: 1771
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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
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


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