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
 

 

Difference between abnormal end, RC, ABEND

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rohanthengal

Active User


Joined: 19 Mar 2009
Posts: 181
Location: Globe, India

PostPosted: Sat Nov 13, 2010 12:43 pm    Post subject: Difference between abnormal end, RC, ABEND
Reply with quote

I want to know the difference between the term :
STEP ABNORMALLY ENDING.
If step returns RC = 4 and in the subsequent step i have coded COND=ONLY, then will that subsequest step work ?
IBM Manual says that COND=ONLY will work only if any of the previous step abnormally ends.
Requesting experts to explain me this.
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Nov 13, 2010 1:04 pm    Post subject:
Reply with quote

Did you try this condition test before posting.
Clue - is a non zero RC 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: Sat Nov 13, 2010 10:48 pm    Post subject:
Reply with quote

Hello,

Quote:
STEP ABNORMALLY ENDING.
Where did you see this?

Was there a message id associated with this?

Quote:
IBM Manual says that COND=ONLY will work only if any of the previous step abnormally ends.
Yes, this is true. You need to make sure that your understanding of "abnormally ends" is the same as IBM intended.

If some program detects something that causes the program to gracefully end while setting a return code (even if the program produces a message that the program is abnormally ending), this is not an IBM abnormal termination.

Keep in mind that a return code is neither a System abend nor a User abend.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Tue Nov 16, 2010 8:32 pm    Post subject:
Reply with quote

Quote:
Difference between abnormal end, RC, ABEND
If I go by your subject line then two terms "abnormal end" and "ABEND" are actually same. And RC is - Return-Code. JCL refers to the return code as COND ("condition code"), and can use it to decide whether to run subsequent steps. However, unlike most modern programming languages, conditional steps in JCL are not executed if the specified condition is true, that's why this is remembered as "If it's true, pass on through (without running the code).

Return code specifies how successful the program was. The most common conventional values are:

0 = all is well.
4 = minor errors or problems
8 = significant errors or problems
12 = major errors or problems
16 = very serious problems, do not use the results!
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 C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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