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

doubt of COND CODE


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Fri Mar 03, 2006 12:33 pm
Reply with quote

Hi,

I have 3 steps in a jcl. But, I want to execute only 3rd step alone and I dont want to execute 1st and 2nd steps in the JCL.

for this the answer is we need to code the COND=(0,LE) in 1st and 2nd steps not to execute those steps...............

here the question is..............

for first step itself we are conding the COND parameter then with which COND code it compares the RETURN CODE.....normally it compares with the RETURN CODE of the previous steps. But, in case of first step with which RETURN CODE it compares the condition code.............

I hope you understood the question..........

thx in advance.............................

pavan
Back to top
View user's profile Send private message
kumaresh.M

New User


Joined: 17 Feb 2006
Posts: 64
Location: Bangalore

PostPosted: Fri Mar 03, 2006 3:26 pm
Reply with quote

Hi friend,
i think what ever its the first step will be executed,
we can't specify COND parameter in first step,
if u want to leave the first step use the restart option

iam also confused with the samething and i got solution from my friends

corrections well come
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Mar 03, 2006 5:58 pm
Reply with quote

Pavan,

The best way you can solve your problem is to give a RESTART parm on Job card mentioning STEP3 there.

You would like to see below links for doubts on COND parameter.
http://ibmmainframes.com/viewtopic.php?t=7295
http://ibmmainframes.com/viewtopic.php?t=6265

Regards,
Priyesh.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Mar 05, 2006 6:54 am
Reply with quote

Hi Pavan,

The 1st step attempting execution can NEVER test for a RC of a prev step because there IS no prev step. So you have to restart at the step you want to execute. You use COND to stop exec of the following steps. The easiest way to do that is to put COND=(0,LE) in the JOB card. That o'rides the COND of all the JOB steps.

Check out my ans in the link below. Cross my heart, it works.

ibmmainframes.com/viewtopic.php?t=9178&highlight=
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
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 REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top