IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Abending a job explicitly


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Dec 12, 2008 3:41 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Dec 12, 2008 3:56 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Dec 12, 2008 5:19 pm
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

Moderator Emeritus


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

PostPosted: Fri Dec 12, 2008 9:45 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Access an specific memory address exp... COBOL Programming 1
No new posts *MASTER* address space abending at IPL All Other Mainframe Topics 2
No new posts Db2 load job abending in SORT DB2 4
No new posts DB2 Program abending without giving a... DB2 7
No new posts How to explicitly specify overflow pa... SYNCSORT 7
Search our Forums:

Back to Top