Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

CONDs - EVEN vs ONLY

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: CONDs - EVEN vs ONLY
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: 1770
Location: Bloomington, IL

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

No! A high condition code is not an abend!
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 24, 2011 8:51 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Tue May 24, 2011 9:06 pm    Post subject: Reply to: CONDs - EVEN vs ONLY
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    Post subject:
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: 1770
Location: Bloomington, IL

PostPosted: Tue May 24, 2011 10:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Conds for a flush step vasco ferreira JCL & VSAM 7 Thu Dec 11, 2008 3:46 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us