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
 
Abending a job explicitly

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

New User


Joined: 28 Aug 2008
Posts: 2
Location: Bangalore

PostPosted: Fri Dec 12, 2008 3:27 pm    Post subject: Abending a job explicitly
Reply with quote

I need a JCL to abend in step2 if return code of step 1 is 8. How to get it done by doing something in the JCL.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Fri Dec 12, 2008 3:41 pm    Post subject: Reply to: Abending a job explicitly
Reply with quote

There is no specific program for this purpose. You have to write your own. Here's a suggestion.
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: Fri Dec 12, 2008 3:56 pm    Post subject:
Reply with quote

You could conditionally execute a step for IEFBR14 to reference a non existant dataset to cause a JCL error
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Fri Dec 12, 2008 5:19 pm    Post subject: Reply to: Abending a job explicitly
Reply with quote

do You need a specific abend or anything will go...
just execute a non existing program name...
many IBM installation job streams had the (in)famous
//ABEND EXEC PGM=EXPCT806 expect 806
or
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: Fri Dec 12, 2008 9:45 pm    Post subject:
Reply with quote

Hello,

Do you really want an abend (Sxxx or Unnnn) or do you simply want the job to stop executing?

If the first step can issue an rc=8, it could force an abend as well. . .
Back to top
View user's profile Send private message
mpawankumar

New User


Joined: 26 Sep 2007
Posts: 7
Location: Chennai

PostPosted: Sat Dec 13, 2008 12:13 am    Post subject:
Reply with quote

Hi,

Just give a try the below one....


Step01.....
--
--
Step02 exec PGM=YOUR PGM NAME, COND=(0,NE)
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 Db2 load job abending in SORT mistah kurtz DB2 4 Mon Jun 05, 2017 3:58 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts How to explicitly specify overflow pa... sudarshan.srivathsav SYNCSORT 7 Wed Apr 23, 2014 1:51 am
No new posts PL/I - IMS DB program abending while ... mistah kurtz IMS DB/DC 4 Thu Apr 25, 2013 12:41 pm
No new posts Search all to be sorted explicitly suraaj COBOL Programming 5 Tue Apr 23, 2013 12:09 am

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