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
 

 

Calling abend routine directly from JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Sep 16, 2008 2:55 pm    Post subject: Calling abend routine directly from JCL
Reply with quote

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
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 16, 2008 3:01 pm    Post subject:
Reply with quote

COND= detailed in the JCL manual along with IF/THEN/ELSE
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2238
Location: @my desk

PostPosted: Tue Sep 16, 2008 3:16 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Selva-kumar

New User


Joined: 01 Mar 2007
Posts: 52
Location: chennai

PostPosted: Tue Sep 16, 2008 3:17 pm    Post subject: Reply to: Calling abend routine directly from JCL
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 16, 2008 3:26 pm    Post subject:
Reply with quote

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 icon_sad.gif
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Sep 16, 2008 3:47 pm    Post subject:
Reply with quote

S.Selvakumar,

S804 would only occur if a module was invoked.

you should have said S806
Back to top
View user's profile Send private message
Selva-kumar

New User


Joined: 01 Mar 2007
Posts: 52
Location: chennai

PostPosted: Tue Sep 16, 2008 4:10 pm    Post subject: Reply to: Calling abend routine directly from JCL
Reply with quote

Ya. It will be S806. Sorry and Thanks Dick
Back to top
View user's profile Send private message
pjnithin

Active User


Joined: 22 Dec 2005
Posts: 116

PostPosted: Tue Sep 16, 2008 4:15 pm    Post subject: hi
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Sep 16, 2008 4:36 pm    Post subject:
Reply with quote

there is this: http://publib.boulder.ibm.com/infocenter/zoslnctr/v1r7/topic/com.ibm.zcourses.doc/com.ibm.zcourses.jcl.doc/com.ibm.zcourses.introjcl.doc/index.htm?noframes=true

as well as this:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/library

enter JCL hit enter and find the manual that corresponds to your systems JES type and version number.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 241
Location: Cincinnati OH USA

PostPosted: Wed Sep 17, 2008 5:35 am    Post subject:
Reply with 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.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2033
Location: Silicon Valley

PostPosted: Wed Sep 17, 2008 5:40 am    Post subject: Reply to: Calling abend routine directly from JCL
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 17, 2008 6:54 am    Post subject:
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Sep 17, 2008 8:00 am    Post subject:
Reply with quote

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
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 IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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