View previous topic :: View next topic
|
Author |
Message |
deva
New User
Joined: 03 Nov 2005 Posts: 19
|
|
|
|
How can a return code from a COBOL program to be passed to a JCL |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
hi,
there are some system variables where you can pass the data. no need to define in working storage. one of them is
return-code
move 4 to return-code
this will be return to jcl.
this is helpful when you use multiple IF's in JCL to control different steps. |
|
Back to top |
|
|
deva
New User
Joined: 03 Nov 2005 Posts: 19
|
|
|
|
hi ,
one more doubt from your answer
In your example you given that you are moving 4 to return-code
how to know return code before execution ?
can you explain clearly |
|
Back to top |
|
|
|