JCL return codes

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
Jussara
Member
Posts: 1
Joined: Thu Jul 30, 2009 7:13 pm

JCL return codes

Post by Jussara » Thu Jul 30, 2009 7:29 pm

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!

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Thu Jul 30, 2009 7:38 pm

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

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Jul 30, 2009 10:38 pm

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

mohitkumarjainbpl
Member
Posts: 1
Joined: Mon Aug 03, 2009 4:05 pm

Post by mohitkumarjainbpl » Tue Aug 18, 2009 3:33 pm

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)

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Tue Aug 18, 2009 8:18 pm

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

mahalakshmi
Member
Posts: 4
Joined: Tue Oct 05, 2010 4:35 pm

Post by mahalakshmi » Wed Oct 20, 2010 4:24 pm

How to continue with the execution of the program even after gettin the 12 return code??

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Error Hanlding in COBOL

Post by Natarajan » Wed Oct 20, 2010 5:31 pm

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

Anuj Dhawan
Moderator
Posts: 1625
Joined: Sat Aug 09, 2008 9:02 am
Location: Mumbai, India

Post by Anuj Dhawan » Thu Oct 21, 2010 1:12 pm

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

Post Reply

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



Other References
Mainframe Tools and others