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

Force abend a previous step


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sprikitik

New User


Joined: 29 Jan 2007
Posts: 61
Location: Makati City, Philippines

PostPosted: Fri Feb 08, 2008 7:10 am
Reply with quote

Hi,

Does anybody know how to force abend a previous steps who returns a RC of 0?

The scenario is i need to execute a step, but for that step to execute, the previous step should abend.. Please help me!
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 Feb 08, 2008 8:19 am
Reply with quote

Hello,

Make up a test job that has 2 steps.

Make the first step abend (one easy way is to create a very small program that issues a divide by zero - which will cause an s0cb abend).

The second step will be the one you want to execute if there was a prior abend. You will want COND= for the second step to be EVEN or ONLY, depending on your requirement.

Keep in mind that no value of rc constitutes an abend - it is merely a return code.

One last thought - you can do nothing to change any prior step - it is done.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Feb 08, 2008 3:22 pm
Reply with quote

Dick has given some good advice.

Also, a search of the forum would have produced the answer NO as this has been discussed many many times.

If a step has ended and has issued a return code, it has been done, how did you think that you could change something that has already happened ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Feb 08, 2008 4:40 pm
Reply with quote

i am constantly stepping on the brakes of the car behind me.
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Fri Feb 08, 2008 4:47 pm
Reply with quote

and I try hard to turn back in time when I say/do something wrong... with no success (by now).

;)
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 ISAM and abend S03B JCL & VSAM 10
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to append a PS file into multiple... JCL & VSAM 3
No new posts force tablespace using LISTDEF input DB2 1
No new posts convert file from VB to FB and use tr... DFSORT/ICETOOL 8
Search our Forums:

Back to Top