JCL return codes
Moderators: Frank Yaeger, DikDude, Moderator Group
JCL return codes
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!
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!
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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.
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
Anuj
-
- Member
- Posts: 1
- Joined: Mon Aug 03, 2009 4:05 pm
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
-
- Member
- Posts: 4
- Joined: Tue Oct 05, 2010 4:35 pm
Error Hanlding in COBOL
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.
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
Chennai
-
- Moderator
- Posts: 1625
- Joined: Sat Aug 09, 2008 9:02 am
- Location: Mumbai, India
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)?mahalakshmi wrote:How to continue with the execution of the program even after gettin the 12 return code??
Regards,
Anuj
Anuj
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page