View previous topic :: View next topic
|
Author |
Message |
sprikitik
New User
Joined: 29 Jan 2007 Posts: 61 Location: Makati City, Philippines
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
i am constantly stepping on the brakes of the car behind me. |
|
Back to top |
|
|
acevedo
Active User
Joined: 11 May 2005 Posts: 344 Location: Spain
|
|
|
|
and I try hard to turn back in time when I say/do something wrong... with no success (by now).
;) |
|
Back to top |
|
|
|