View previous topic :: View next topic
|
Author |
Message |
waynemarlowe75
New User
Joined: 24 May 2011 Posts: 2 Location: ireland
|
|
|
|
Everywhere I look I get the following response to my question -
EVEN – means execute the step even if a previous step has abended abnormally.
ONLY – means execute the step only if a previous step has abended abnormally.
- which doesn't tell me much.
We have found that this step below is not being executed, despite the program in the previous step passing a 4087 return code -
//ABEND6 EXEC PGM=BIABEND,PARM=12,COND=((0,GE,STEP010),ONLY)
But, changing the parm to EVEN will result in the abend step being executed -
//ABEND6 EXEC PGM=BIABEND,PARM=12,COND=((0,GE,STEP010),EVEN)
How is this the case? surely a 4087 from the called program would result in either ABEND step being executed?
Any assistance appreciated |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
No! A high condition code is not an abend! |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
Quote: |
surely a 4087 from the called program would result in either ABEND step being executed? |
Who was responsible for feeding you that plateful of misinformation. . . ?
An ABEND is completely separate from a Return Code.
Suggest you spend a few minutes reading in the JCL manual (we have conveniently put a link at the top of the page to "IBM Manuals" and near the top are multiple JCL manuals). |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
lately the confusion between abend and non 0 return code keep surfacing quite too frequently |
|
Back to top |
|
|
waynemarlowe75
New User
Joined: 24 May 2011 Posts: 2 Location: ireland
|
|
|
|
Thanks for the feedback guys!
Apologies, I may not have been entirely clear - although the 'return code' was indeed 4087, the program did abend and there was dump output in the logs. The abend step did not kick in though, as we would have expected.
When a programmer changed the cond to 'EVEN' it worked perfectly, executing the abend step - this is the confusion. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
In each case:
- Was STEP10 the abending step?
- If not, what was the condition code of STEP10?
As Mr. Scherrer says, be absolutely certain that you are distinguishing an abend from a non-zero return code. A user abend is an abend (your statements are unclear, but it seems quite possible that you are getting a U4087 abend from LE). It is preferable by far that you post the JCL and the messages from the job. |
|
Back to top |
|
|
|