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 in cobol

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

New User


Joined: 08 Apr 2004
Posts: 25
Location: hyd

PostPosted: Wed Apr 21, 2004 2:28 pm    Post subject: What is RETURN-CODE in cobol
Reply with quote

Hi,
is there any reserve word like RETURN-CODE in cobol
Back to top
View user's profile Send private message

anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Apr 21, 2004 3:17 pm    Post subject: cobol reserve words
Reply with quote

yes kiran , RETURN-CODE is a reserve word in cobol.

Thanks
Anu
Back to top
View user's profile Send private message
kiran

New User


Joined: 08 Apr 2004
Posts: 25
Location: hyd

PostPosted: Thu Apr 22, 2004 11:04 am    Post subject: Re: cobol reserve words
Reply with quote

anuradha wrote:
yes kiran , RETURN-CODE is a reserve word in cobol.

Thanks
Anu


Hi,
thanx anu. Pls clarify one more doubt. my doubt is if i'm sending a returncode from cobol program to jcl , how can i retrieve it in my jcl
Back to top
View user's profile Send private message
bluebird

Active User


Joined: 03 Feb 2004
Posts: 127

PostPosted: Thu Apr 22, 2004 1:06 pm    Post subject:
Reply with quote

you don't retrieve return-code in JCL. it is returned at the end of program.
you can condition the flow of subsequent jcl steps though using
JCL's IF THEN/ELSE or condition statement.
see JCL manuals on this site.
Back to top
View user's profile Send private message
Arun Joseph

New User


Joined: 30 Mar 2005
Posts: 13
Location: India

PostPosted: Wed Mar 30, 2005 9:31 pm    Post subject:
Reply with quote

When u execute a pgm in a particular step, the return code of that step will be the RC of the program.
Back to top
View user's profile Send private message
thiru.guduru

New User


Joined: 06 Apr 2005
Posts: 9
Location: Bangalore

PostPosted: Wed Apr 06, 2005 5:28 pm    Post subject: Re: What is RETURN-CODE in cobol
Reply with quote

whenever you move some value to RETURN-CODE register the same value is returned by jcl. So you can use the return code in subsequent steps.
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 EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm
No new posts XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm


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