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 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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm


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