Page 1 of 1

How to change the Return code?

Posted: Wed Sep 04, 2013 6:24 pm
by Mr Awasthi
Hi,

I've a COBOL program, which at successful execution gives RC=00, is there any way to change it to RC=8. One way I can think of using moving 8 to RETURN-CODE register but I don't want to change the program.

Regards,

Re: How to change the Return code?

Posted: Wed Sep 04, 2013 6:36 pm
by Robert Sample
You either change the program or accept the 0 return code. Since return code 0 usually means normal end of program and return code 8 usually means some error occurred, why do you want to change the 0 to 8?

Re: How to change the Return code?

Posted: Wed Sep 04, 2013 7:03 pm
by Mr Awasthi
Thanks Robert.

The Business maps the RC=08 with some Business condition, RC=00 is already mapped to a condition. This is the reason why I need RC=08.