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 different type of codes in JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Difference Between different type of codes in JCL
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: 8593
Location: Back in jolly old England

PostPosted: Sun Jan 11, 2009 3:11 pm    Post subject:
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: 401
Location: Mumbai

PostPosted: Mon Jan 12, 2009 9:06 am    Post subject: Reply to: Difference Between different type of codes in JCL
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    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 Ccompar BLOB (images of type jpg) on ... nihad DB2 0 Sun Feb 05, 2017 3:13 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Query using SUBSTRING on a column of ... sasanka DB2 5 Mon Jul 04, 2016 1:01 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm


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