CompuServe Thread

#Suppressing AREXX ERRORS

5 messages in this thread
#40218From: Mike/CompuStore W-GermanMar 25, 1994 5:45 AM
Hello Bill, I do have a small problem which I want to get rid of using AREXX. As I'm writing a macro using other macros I know of a problem which will occur. While calling those macros out of mine an error will occur. I'm aware of this problem but I'm not allowed to change the other macros I'm calling. I did use the OPTIONS FAILAT command so at least my macro does not get interrupted any more but now I'm looking for a way to get rid of the ERROR message shown in the calling window. Is it possible to send the STDOUT to NIL: while my macro is running? Thanx -Mike CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel: +49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784
#40219From: Bill HawesMar 25, 1994 8:10 AM
Hi Mike, Yes, you can redefine STDOUT in an ARexx macro, and send it to NIL: or to an error logging file if you wish. Just use the close() function to close the existing stdout, then use the open() function to open STDOUT on the new file. (One thing to remember — file handles like STDOUT are case sensitive in ARexx, so be sure to refer to it as 'STDOUT'.) -Bill Hawes
#40238From: Mike/CompuStore W-GermanMar 26, 1994 3:31 AM
Thank you Bill, another question. Do I have to put negative values in quotes within an argument string? e.g. address 'whatever' DOTHIS "mytest" anyangle '-5' Or is there an other way to handle negative values for passing to a different host? Thanx -Mike CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel: +49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784
#40239From: Bill HawesMar 26, 1994 9:09 AM
Mike, Remember that the command you pass to an external host is treated as an expression in REXX. The interpreter will evaluate the expression and then pass the resulting string to the specified host. Thus if you've got a minus sign (or any other operator) that you want to pass as a literal, rather than having it evaluated, you'll need to enclose it in quotes. Basically anything you don't want to have evaluated should be in quotes. -Bill Hawes
#40272From: Mike/CompuStore W-GermanMar 28, 1994 5:53 AM
Thanx Bill, I see, while processing the command line, ARexx wants to evaluate whatever it finds. So if something must not be evaluated I have to put it in quotes. -Mike CompuStore GmbH – Michael Metz – Fritz-Reuter-Str.6 – D-60320 Frankfurt Tel: +49 69 567399 – CI$ 71001,210 – Fax: +49 69 5601784