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 Getting GG return code abdulrafi IMS DB/DC 2 Tue Apr 10, 2018 12:31 pm
No new posts IMS error U4038 while executing my PL... abdulrafi IMS DB/DC 2 Thu Feb 08, 2018 1:05 pm
No new posts Conditional setting of return-code af... sanvan COBOL Programming 9 Wed Jan 31, 2018 11:05 pm
No new posts IBEGENER RETURN CODE 12 anilkumar922 All Other Mainframe Topics 5 Wed Dec 13, 2017 11:41 am
No new posts Finding the plan when code compiled u... Ahemad DB2 2 Fri Dec 01, 2017 6:38 pm

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