View previous topic :: View next topic
|
Author |
Message |
pjnithin
Active User
Joined: 22 Dec 2005 Posts: 116
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
COND= detailed in the JCL manual along with IF/THEN/ELSE |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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: 52 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: 8796 Location: Welsh Wales
|
|
|
|
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
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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: 52 Location: chennai
|
|
|
|
Ya. It will be S806. Sorry and Thanks Dick |
|
Back to top |
|
|
pjnithin
Active User
Joined: 22 Dec 2005 Posts: 116
|
|
|
|
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
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, 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
Global Moderator
Joined: 01 Sep 2006 Posts: 2593 Location: Silicon Valley
|
|
|
|
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: www-03.ibm.com/systems/z/os/zos/bkserv/r10pdf/ |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 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 |
|
|
|