View previous topic :: View next topic
|
Author |
Message |
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
Hi,
is there any reserve word like RETURN-CODE in cobol |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
yes kiran , RETURN-CODE is a reserve word in cobol.
Thanks
Anu |
|
Back to top |
|
|
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
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 |
|
|
bluebird
Active User
Joined: 03 Feb 2004 Posts: 127
|
|
|
|
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 |
|
|
Arun Joseph
New User
Joined: 30 Mar 2005 Posts: 13 Location: India
|
|
|
|
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 |
|
|
thiru.guduru
New User
Joined: 06 Apr 2005 Posts: 9 Location: Bangalore
|
|
|
|
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 |
|
|
|