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 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm

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