IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Difference Between different type of codes in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
abhisriv

New User


Joined: 12 Jan 2007
Posts: 2
Location: US

PostPosted: Sun Jan 11, 2009 12:36 pm
Reply with quote

Hi All,
I am searching for difference between different type of code in JCL
like...
Return Code, User Completion Code, Abend Code, Reason Code.
Other than answer to this question If you can provide me any site or book where I can read in detail about these codes it will be excellent.
Anu
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jan 11, 2009 3:11 pm
Reply with quote

Return code - is issued by the program and can be set to any value up to an arbitary limit (4096 I think). To know the meaning of the return code you need to read the documentation of the program / product / utility that is being executed. i.e. RC16 from SORT does not mean the same thing as RC16 from IDCAMS.

Abend / User completion code - are codes that reflect the nature of the abend. System abends are documented by IBM, user completion codes are the same as above for return codes.

Reason code - May or may no be used in conjunction with abends codes. Again totally program / product / utility dependant.
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 400
Location: Mumbai

PostPosted: Mon Jan 12, 2009 9:06 am
Reply with quote

Excellent summary, expat. I'd add that return codes and abend codes have nothing to do with JCL. They are set for all of the ways you can start a program, and JCL is only one of many ways you can run a program in z/OS. for example you can call a program from JCL, TSO, Rexx, assembler, COBOL, any other programming language, ISPF, Unix system services, operator commands, etc and if the program abends, you get an abend code. Return codes are sometimes handled slightly differently depending on how the program is called. Unix system services and ISPF, for example may return different values or reserve values for special meanings.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts SMF record type 30 JCL & VSAM 8
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
Search our Forums:

Back to Top