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

What is RETURN-CODE in cobol


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts run rexx code with jcl CLIST & REXX 15
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Compile rexx code with jcl CLIST & REXX 6
Search our Forums:

Back to Top