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
 

 

doubt of COND CODE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: doubt of COND CODE
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    Post subject: Re: doubt of COND CODE
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: 1452
Location: Chicago, IL

PostPosted: Fri Mar 03, 2006 5:58 pm    Post subject: Re: doubt of COND CODE
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    Post subject:
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.

http://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    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 MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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