|
|
| Author |
Message |
pjnithin
Active User
Joined: 22 Dec 2005 Posts: 108
|
|
|
|
| I need to abend a job based on the return code from some of the previous steps. So how can I call an abend routine direclt from jcl by checking the return code from some previous steps. |
|
| Back to top |
|
 |
References
|
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3563 Location: Brussels once more ...
|
|
|
|
| COND= detailed in the JCL manual along with IF/THEN/ELSE |
|
| Back to top |
|
 |
arcvns
Senior Member
Joined: 17 Oct 2006 Posts: 800 Location: Chennai, India
|
|
|
|
| Quote: |
| I need to abend a job based on the return code |
Just curious to know why do you need to abend a job when you can bypass particular step(s) in a job based on the return-code(s) from previous steps.
Thanks,
Arun |
|
| Back to top |
|
 |
Selva-kumar
New User
Joined: 01 Mar 2007 Posts: 29 Location: chennai
|
|
|
|
Hi,
Based on the return code of previous step, code a step to call a program that is not actually present in your library. It will cause S804 abend. I'm not sure that this is a standardized way of creating an abend. |
|
| Back to top |
|
 |
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 3563 Location: Brussels once more ...
|
|
|
|
| arcvns wrote: |
| Quote: |
| I need to abend a job based on the return code |
Just curious to know why do you need to abend a job when you can bypass particular step(s) in a job based on the return-code(s) from previous steps.
Thanks,
Arun |
Unfortunately a basic practice employed at quite a few sites  |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1641 Location: germany
|
|
|
|
S.Selvakumar,
S804 would only occur if a module was invoked.
you should have said S806 |
|
| Back to top |
|
 |
Selva-kumar
New User
Joined: 01 Mar 2007 Posts: 29 Location: chennai
|
|
|
|
| Ya. It will be S806. Sorry and Thanks Dick |
|
| Back to top |
|
 |
pjnithin
Active User
Joined: 22 Dec 2005 Posts: 108
|
|
|
|
| expat wrote: |
| COND= detailed in the JCL manual along with IF/THEN/ELSE |
hi expat...where can i see this manual....i searched in forum; but couldn't find any.. |
|
| Back to top |
|
 |
dbzTHEdinosauer
Senior Member
Joined: 20 Oct 2006 Posts: 1641 Location: germany
|
|
| Back to top |
|
 |
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 170 Location: Cincinnati OH USA
|
|
|
|
| Many shops have an in house version of a program that calls the abend macro and displays a user code. Easy way to halt scheduled group of jobs. |
|
| Back to top |
|
 |
Pedro
Senior Member
Joined: 01 Sep 2006 Posts: 543 Location: work
|
|
|
|
| Quote: |
| where can i see this manual....i searched in forum; but couldn't find any.. |
It is at the very top of every page for this web site. It is white letters on gray background. Click on 'IBM Manuals'
Or you can look here: http://www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/ |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8768 Location: 221 B Baker St
|
|
|
|
Hello,
| Quote: |
| Many shops have an in house version of a program that calls the abend macro and displays a user code. Easy way to halt scheduled group of jobs. |
This also provides for generating a User abend (Unnnn) rather than forcing some phony system abend (Snnn). The result is the same (an abend), but User abends are far more managable. |
|
| Back to top |
|
 |
Anuj D.
Global Moderator
Joined: 22 Apr 2006 Posts: 2239 Location: Mumbai, India
|
|
|
|
Hi,
All the suggestions so far talk about a CALLable abend-routine, I was also using the same concept but now I got little curious - do we have any such utility/CALLable routine which can be executed right away in JCL instead of CALLing via a program written in some programming language. |
|
| Back to top |
|
 |
|
|