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 How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 0 Thu Jan 12, 2017 12:02 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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