Regards,
Richard Schuh
________________________________
From: The IBM z/VM Operating System [mailto:[email protected]] On Behalf
Of Kris Buelens
Sent: Thursday, February 25, 2010 7:06 AM
To: [email protected]
Subject: Re: An SFS aid
I agree with the "use Signal sometimes", in cases where one will not return, it
is more clear indeed. But, the example above "if rc<>0 then signal Error"
isn't very practical: you cannot pass parameters. So I have a Call to my
errorexit: routine. The name of the called routine makes it clear to the
reader that one will not return from there.
It could have been "signal errorx" instead of a generic "signal error" where
errorx knows the message to display. The variable rc is still available to it
and can be included in the message.
if rc<>0 then call errExit rc,'Something was wrong','Please try again'
That message is too generic and not at all helpful. It defeats the purpose of
the call. As stated above, the rc is still available to the error routine, even
if signal is used.