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

what is RETURN-CODE register ,how to pass to jcl


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 1448
Location: Chicago, IL

PostPosted: Mon Jun 27, 2005 6:37 pm
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
Search our Forums:

Back to Top