Home      Mainframe Forum      Mainfarme Tutorials      IBM Manuals      Mainframe Interview Questions      Mainframe Books      IT News     SiteMap     Downloads


     
 
MAINFRAME - TIP OF THE DAY : When you use COUNT operator to set a return code of 12 or 4 if a specified data set is EMPTY, NOTEMPTY, HIGHER(n), LOWER(n), EQUAL(n) or NOTEQUAL(n). where n is a specified number of records. If you use the RC4 operand, SORT sets RC=4; otherwise it sets RC=12. E.g. COUNT FROM(IN) EMPTY

Google
 
Web mainframegurukul.com

JCL return codes

 
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL
  View previous topic :: View next topic  
Author Message
Jussara
Member


Joined: 30 Jul 2009
Posts: 1

PostPosted: Thu Jul 30, 2009 7:29 pm    Post subject: JCL return codes Reply with quote

Hi ppl, I'm new in this forum.

I'm a brasilian COBOL programmer girl, but I'm still not so experient...

Does anyone have the list of return-codes meaning in JCL steps?
I'm coding some and i have a return-code 16, I dont figure what does it mean!

Thanks!
Back to top
View user's profile Send private message

Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 537
Location: chennai

PostPosted: Thu Jul 30, 2009 7:38 pm    Post subject: Reply with quote

Please the spool/job execution details. There you can find some info on this.
Return code 16 can be a problem with jcl OR cobol program.

check the spool details.
_________________
Natarajan
Chennai
Back to top
View user's profile Send private message Visit poster's website
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1625
Location: Mumbai, India

PostPosted: Thu Jul 30, 2009 10:38 pm    Post subject: Reply with quote

Jussara,

To start with -- JCL itself does nothing but execute programs. So the Return codes (RC) tells the statistics of what happened to the program executed in that step, RC don't belong to JCL but the programs.

To get better help, as suggested by Natarajan, please post the SYSOUT details.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
mohitkumarjainbpl
Member


Joined: 03 Aug 2009
Posts: 1

PostPosted: Tue Aug 18, 2009 3:33 pm    Post subject: Reply with quote

JCL Return Code=0(Prog. Executed Successfully)
JCL Return Code=4(Prog. Executed Successfully but with warnings)
JCL Return Code=8(Error)
JCL Return Code=12(Serious Error)
JCL Return Code=16(Fatal Error)
Back to top
View user's profile Send private message
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1625
Location: Mumbai, India

PostPosted: Tue Aug 18, 2009 8:18 pm    Post subject: Reply with quote

To restate -- JCL itself does nothing but execute programs. So the Return codes (RC) tells the statistics of what happened to the program executed in that step, RC don't belong to JCL but the programs.
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
mahalakshmi
Member


Joined: 05 Oct 2010
Posts: 4

PostPosted: Wed Oct 20, 2010 4:24 pm    Post subject: Reply with quote

How to continue with the execution of the program even after gettin the 12 return code??
Back to top
View user's profile Send private message
Natarajan
Moderator


Joined: 10 Oct 2008
Posts: 537
Location: chennai

PostPosted: Wed Oct 20, 2010 5:31 pm    Post subject: Error Hanlding in COBOL Reply with quote

For new questions, my suggestion is to start new thread ( Click on Post Button ).

ERROR HANDLING IN COBOL PROGRAM

once you get return code from the step that means execution of the program is completed with some error. If your question is around, if there is a internal error, you want to by pass that error and continue executing the program. COBOL has error handling phrases with most of the COBOL verbs UNSTRING statement has ON OVERFLOW phrase. Arthmetic operations ( ADD, SUBTRACT, MULTIPLY, DIVIDE and COMPUTE ) has ON SIZE ERROR phrase. in input-output operations, there are several imporatnt error-handling phrases and clauses.. AT END Phrase, INVALID KEY phase, FILE STATUS clause.

if a severe error occured, that can be handled by User-written Error handling Routines supported by ILE cobol.
_________________
Natarajan
Chennai
Back to top
View user's profile Send private message Visit poster's website
Anuj Dhawan
Moderator


Joined: 09 Aug 2008
Posts: 1625
Location: Mumbai, India

PostPosted: Thu Oct 21, 2010 1:12 pm    Post subject: Reply with quote

mahalakshmi wrote:
How to continue with the execution of the program even after gettin the 12 return code??
Program execution? I'm skeptical about this, I usually hear about JCL execution after such RC from some steps (though that JCL question in itself has its own flaws, let's leave them alone for the time being)?
_________________
Regards,
Anuj
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    mainframegurukul.com Forum Index -> JCL All times are GMT + 5 Hours
Page 1 of 1



 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Related topics
 Topics   Replies   Author   Views   Last Post 
No new posts Recently faced mainframe cobol Interview Questions. 13 rangab 13141 Mon Nov 07, 2011 9:41 am
devegouda.chage View latest post
No new posts How do I add sticky in this Forum ? 10 Anuj Dhawan 7772 Mon Dec 06, 2010 3:07 pm
Anuj Dhawan View latest post
No new posts Why another mainframe forum? 3 MrSpock 4318 Mon Apr 20, 2009 11:06 am
Anuj Dhawan View latest post
No new posts Move topic from one forum to other.. 5 Anuj Dhawan 3443 Thu Nov 27, 2008 3:55 pm
Anuj Dhawan View latest post
No new posts Can I add sticky in this Forum ? 2 Anuj Dhawan 2690 Thu Nov 27, 2008 2:49 pm
Anuj Dhawan View latest post
 





Cobol Tutorial
This cobol tutorial covers most of the important topics like STRING, UNSTRING, COMP, COMP-3.....
DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. Explains in simple language. Some Chapters are locked, Forum members have free access to these chapters
CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming...
JCL Tutorial
This is most popular JCL tutorial from mainframegurukul. It does contain important jcl ....
SORT Tutorial
This Tutorial covers all important aspects of DFSORT. Has more SORT examples
INTERVIEW Questions
This page covers important interview questions
Mainframe Jobs
Mainframe Jobs posted by members of mainframegurukul forum
FaceBook Page
MainframeGurukul FaceBook Page
LinkedIn Page
MainframeGurkul Linkedin Page

This widget requires Flash Player 9 or better







Go to top of the page
 

Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  DB2 INTERVIEW QUESTIONS ||  COBOL INTERVIEW QUESTIONS  ||  JCL INTERVIEW QUESTIONS ||  JCL2 INTERVIEW QUESTIONS ||  VSAM INTERVIEW QUESTIONS ||  CICS INTERVIEW QUESTIONS  ||  Online tutorials ||  Online ABEND Reference ||  JCL References ||  COBOL References ||  VSAM References ||  Tutorials by Drona Series ||  SQL tutorial ||  BOOKS  ||  SiteMap  ||  Expeditor Tutorial  ||  FILE-AID Tutorial  ||  Changeman Tutorial  ||  COBOL   ||  DB2   ||  JCL  ||  CICS  ||  VSAM  ||  DB2 Interview Questions ( 110 )   || Simple JCL Tutorials  || JCL Tutorial from MainframeGurukul.com   || Simple JCL Tutorial - Chapter1 ;|| Mainframe Forum - Tutorials  || Mainframe Tutorials || Mainframe CICS tutorial|| Mainframe COBOL Tutorial

Drona Educational Forums - Mainframe Cobol DB2 CICS Board
Powered by phpBB

mainframetopic-4519.html