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

CONDs - EVEN vs ONLY


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

New User


Joined: 24 May 2011
Posts: 2
Location: ireland

PostPosted: Tue May 24, 2011 8:31 pm
Reply with quote

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 icon_smile.gif
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 8:34 pm
Reply with quote

No! A high condition code is not an abend!
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: Tue May 24, 2011 8:51 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Tue May 24, 2011 9:06 pm
Reply with quote

lately the confusion between abend and non 0 return code keep surfacing quite too frequently
Back to top
View user's profile Send private message
waynemarlowe75

New User


Joined: 24 May 2011
Posts: 2
Location: ireland

PostPosted: Tue May 24, 2011 10:07 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 10:30 pm
Reply with quote

In each case:
  1. Was STEP10 the abending step?
  2. 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
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 Conds for a flush step JCL & VSAM 7
Search our Forums:

Back to Top