Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
Location: East Dubuque, Illinois, USA

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: 1249
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: 1249
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 Regarding time parameter shanthi gude JCL & VSAM 7 Mon Sep 04, 2017 2:31 pm
No new posts Changing sort Card Dynamically vickey_dw DFSORT/ICETOOL 5 Sat Aug 19, 2017 2:33 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts JTS parameter Shashank Chaubey JCL & VSAM 2 Thu Jul 13, 2017 4:15 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us