Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
COND parameter at JOB card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 9
Location: Turkey

PostPosted: Fri Oct 24, 2008 8:43 pm    Post subject: COND parameter at JOB card
Reply with quote

Hello,
I want to write COND parameter at JOB card and JOB will be terminate if any steps return code not Equal 0 or not equal 166.
0 and 166 return codes of steps are means not error and the JCL can execute next step.
Is it possible?
Thanks.
Back to top
View user's profile Send private message
References
Robert Sample

Senior Member


Joined: 06 Jun 2008
Posts: 1173
Location: Atlanta, GA

PostPosted: Fri Oct 24, 2008 8:45 pm    Post subject:
Reply with quote

After reading the manual, what have you tried and what isn't working?
Back to top
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 9
Location: Turkey

PostPosted: Fri Oct 24, 2008 8:54 pm    Post subject: Reply to: COND parameter at JOB card
Reply with quote

Infact I couldn't find the exact answer at the manuals.

I am using that COND parameter for now to catch the major error Codes.
COND=((4,EQ),(8,EQ),(12,EQ),(16,EQ),(20,EQ),(166,LT))

I have tried that, but it didn't work;
COND=((0,NE),(166,NE))

I could understand why the second one failed but I couln't find the correct one..
Thanks.
Back to top
View user's profile Send private message
Terry Heinze

Active User


Joined: 14 Jul 2008
Posts: 260
Location: Richfield, MN, USA

PostPosted: Fri Oct 24, 2008 10:56 pm    Post subject:
Reply with quote

Code:
COND=((0,NE),(166,NE))
looks okay to me. Are you sure this didn't work?
Back to top
View user's profile Send private message
Anuj D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2353
Location: Mumbai, India

PostPosted: Fri Oct 24, 2008 11:22 pm    Post subject: Re: Reply to: COND parameter at JOB card
Reply with quote

Hi,
ozgurseyrek wrote:
I could understand why the second one failed but I couln't find the correct one..
I believe, if you will tell in what manner it's been "failed" and what makes it correct ? May be we'll be able to hit on the nail..
Back to top
View user's profile Send private message
ozgurseyrek

New User


Joined: 22 Feb 2008
Posts: 9
Location: Turkey

PostPosted: Sat Oct 25, 2008 2:40 am    Post subject: Reply to: COND parameter at JOB card
Reply with quote

COND=((0,NE),(166,NE))
that means; the job will not continue
if the return code(rc) is not Equal to the 0
or
the return code(rc) is not Equal to the 166

so at every return code at least one of the the conditions is true.
for example :
rc = 0 for step1, 1. condition is false but the second condition is true.
could i explain?


[/u]
Back to top
View user's profile Send private message
Terry Heinze

Active User


Joined: 14 Jul 2008
Posts: 260
Location: Richfield, MN, USA

PostPosted: Sat Oct 25, 2008 8:17 am    Post subject:
Reply with quote

I stand corrected. I've been "done in" once more by reverse logic. I guess that's why I converted to IF/THEN/ELSE/ENDIF as soon as it became available. icon_smile.gif
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1