|Date: ||Thu, 13 Oct 2005 11:45:30 -0700|
|Reply-To: ||David L Cassell <davidlcassell@MSN.COM>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||David L Cassell <davidlcassell@MSN.COM>|
|Subject: ||Re: Logging errors|
|Content-Type: ||text/plain; format=flowed|
>I am carrying out some validation within my program and want to force an
>error message in the log.
>The error is recoverable, so I want to continue processing the following
>steps, but still want to show an error, in red, in the log.
>if i=3 then abort return 3;
>I get the error message OK, which shows in red, but I want to continue
>processing the following steps.
>ERROR: Execution terminated by an ABORT statement at line 10 column 13, it
>specified the RETURN option.
>i=3 _ERROR_=1 _N_=1
>I can easy show a warning message, but it's always difficult to force users
>to read the log.
 If you can't get the users to read the log, what good will the error
in the log do? Or would you prefer some sort of log parser which flags
 Since you want the program to keep going, you migh opt for something
if i=3 then putlog 'ERROR: I is 3 and I can't take it any more!';
PUTLOG is a SAS 9 statement. I like it.
David L. Cassell
3115 NW Norwood Pl.
Corvallis OR 97330
Express yourself instantly with MSN Messenger! Download today - it's FREE!