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

COND parameter at JOB card


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

New User


Joined: 22 Feb 2008
Posts: 70
Location: Turkey

PostPosted: Fri Oct 24, 2008 8:43 pm
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
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Oct 24, 2008 8:45 pm
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: 70
Location: Turkey

PostPosted: Fri Oct 24, 2008 8:54 pm
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

JCL Moderator


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

PostPosted: Fri Oct 24, 2008 10:56 pm
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 Dhawan

Superior Member


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

PostPosted: Fri Oct 24, 2008 11:22 pm
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: 70
Location: Turkey

PostPosted: Sat Oct 25, 2008 2:40 am
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

JCL Moderator


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

PostPosted: Sat Oct 25, 2008 8:17 am
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
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 JCL sort card - get first day and las... JCL & VSAM 9
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts Demand with DEADLINE TIME parameter CA Products 4
No new posts Option DYNALLOC second parameter. DFSORT/ICETOOL 11
Search our Forums:

Back to Top