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
 

 

COND parameter at JOB card

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    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

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

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: 70
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

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
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 Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
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: 70
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

JCL Moderator


Joined: 14 Jul 2008
Posts: 1239
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
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 DDNAME parameter mistah kurtz JCL & VSAM 6 Mon Dec 19, 2016 4:41 pm
No new posts Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts How to display value of an exit param... lind sh CICS 2 Sun Oct 09, 2016 12:28 pm


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