View previous topic :: View next topic
|
Author |
Message |
vkisweet
New User
Joined: 28 Aug 2008 Posts: 2 Location: Bangalore
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
There is no specific program for this purpose. You have to write your own. Here's a suggestion. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
You could conditionally execute a step for IEFBR14 to reference a non existant dataset to cause a JCL error |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
mpawankumar
New User
Joined: 26 Sep 2007 Posts: 7 Location: Chennai
|
|
|
|
Hi,
Just give a try the below one....
Step01.....
--
--
Step02 exec PGM=YOUR PGM NAME, COND=(0,NE) |
|
Back to top |
|
|
|