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 UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
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


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