Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
what is RETURN-CODE register ,how to pass to jcl

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Rao

New User


Joined: 22 Jun 2005
Posts: 2
Location: mumbai new mumbai

PostPosted: Mon Jun 27, 2005 5:48 pm    Post subject: what is RETURN-CODE register ,how to pass to jcl
Reply with quote

hi,

can any one help me



what is RETURN-CODE register ,how to pass it from cobol program to jcl
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Mon Jun 27, 2005 6:37 pm    Post subject: Re: what is RETURN-CODE register ,how to pass to jcl
Reply with quote

Hi Rao,

Check these links....

http://www.ibmmainframes.com/viewtopic.php?t=1096
http://www.ibmmainframes.com/viewtopic.php?t=532

Regards,

Priyesh.
Back to top
View user's profile Send private message
urnarendra

New User


Joined: 29 Jun 2005
Posts: 7

PostPosted: Wed Jun 29, 2005 4:32 am    Post subject:
Reply with quote

hello,

actually to pass return from cobol to jcl.we are useing return-code register. "return-code" is one register.it is predefine register.we can move value to return-code directly.in that jcl it will be access directly.supose you are useing cond parameter in the first jobcard statement.cond is checking the return code of the previous step.when you are useing the cond in the first statement how it will get the return code?. by useing this return-code register.it contain some default values.?

corrections are welcome.

regards,
knchowdary.
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Tue Jul 05, 2005 3:51 pm    Post subject:
Reply with quote

Hello,
In a nutshell, if we set the register "RETURN-CODE" in the cobol program, it will be accessible in the JCL as normal return code of the programs.
Nothing special needs to be done.
Back to top
View user's profile Send private message
Puneet

New User


Joined: 27 Jun 2005
Posts: 9
Location: Chennai

PostPosted: Thu Jul 07, 2005 11:19 am    Post subject: Re: what is RETURN-CODE register ,how to pass to jcl
Reply with quote

Hi,

The Return code in the Cobol Programs is generally used to set Message for those conditions where some exception condition need to be handled.For ex: Validation checks, Input file given was wrong or database does not have the entry queried.This can be done by using the following code in Program :
MOVE '1234' TO RETURN-CODE
The Condtion Code for this Particular step can be used to bypass/execute the Subsequent steps in the Job.

Thanks,
Puneet
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us