|
|
| Author |
Message |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 9 Location: Turkey
|
|
|
|
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 |
|
 |
References
|
|
 |
Robert Sample
Senior Member
Joined: 06 Jun 2008 Posts: 1173 Location: Atlanta, GA
|
|
|
|
| After reading the manual, what have you tried and what isn't working? |
|
| Back to top |
|
 |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 9 Location: Turkey
|
|
|
|
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 |
|
 |
Terry Heinze
Active User
Joined: 14 Jul 2008 Posts: 258 Location: Richfield, MN, USA
|
|
|
|
| Code: |
| COND=((0,NE),(166,NE)) |
looks okay to me. Are you sure this didn't work? |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2352 Location: Mumbai, India
|
|
|
|
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 |
|
 |
ozgurseyrek
New User
Joined: 22 Feb 2008 Posts: 9 Location: Turkey
|
|
|
|
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 |
|
 |
Terry Heinze
Active User
Joined: 14 Jul 2008 Posts: 258 Location: Richfield, MN, USA
|
|
|
|
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.  |
|
| Back to top |
|
 |
|
|