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
 

 

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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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