View previous topic :: View next topic
|
Author |
Message |
Rao
New User
Joined: 22 Jun 2005 Posts: 2 Location: mumbai new mumbai
|
|
|
|
hi,
can any one help me
what is RETURN-CODE register ,how to pass it from cobol program to jcl |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
Back to top |
|
|
urnarendra
New User
Joined: 29 Jun 2005 Posts: 7
|
|
|
|
hello,
actually to pass return from cobol to jcl.we are useing return-code register. "return-code" is one register.it is predefine register.we can move value to return-code directly.in that jcl it will be access directly.supose you are useing cond parameter in the first jobcard statement.cond is checking the return code of the previous step.when you are useing the cond in the first statement how it will get the return code?. by useing this return-code register.it contain some default values.?
corrections are welcome.
regards,
knchowdary. |
|
Back to top |
|
|
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 269 Location: India
|
|
|
|
Hello,
In a nutshell, if we set the register "RETURN-CODE" in the cobol program, it will be accessible in the JCL as normal return code of the programs.
Nothing special needs to be done. |
|
Back to top |
|
|
Puneet
New User
Joined: 27 Jun 2005 Posts: 9 Location: Chennai
|
|
|
|
Hi,
The Return code in the Cobol Programs is generally used to set Message for those conditions where some exception condition need to be handled.For ex: Validation checks, Input file given was wrong or database does not have the entry queried.This can be done by using the following code in Program :
MOVE '1234' TO RETURN-CODE
The Condtion Code for this Particular step can be used to bypass/execute the Subsequent steps in the Job.
Thanks,
Puneet |
|
Back to top |
|
|
|