Date: Fri, 20 Jan 2006 20:23:08 +0100
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Stéphane Colas <saslist@DATAMETRIC.FR>
Subject: Re: Issue a message window if there is an error in the log
Content-Type: text/plain; charset=ISO-8859-1
An error or a warning is done by a data or proc step. So, if you want to track
this kind of return, you have to use &syserr after these steps to add a
%if &syserr >3 %then %do;
%window (... 'be careful' );
You can increase the informations of the window with a &sysprocname any variable
that you want to capture.
BUT, It's not a good way to work.
I mean if you want to let your program to others, the different ways of
execution of the process must be controlled by the program itself.
When a job production is done, usually the programmer anticipated various
alternatives which can arise during the execution and to control them: to
leave in a Exception block after having carried out some tests of corrections
for example. Hari, you have to do the same.
Otherwise on the windows environment, you can propose to execute the code via C#
apps which can be able to control this.
Selon Hari Nath <hari_s_nath@YAHOO.COM>:
> Hi all,
> I looked back in the archives and wasnt able to find an answer....Lets
> say if I run a program and there was an error/warning in the log, then I
> want to make sas to warn me that i have an error/warnings in my log (may be
> like a pop-up window using %window - %display commands or may be another
> way). This may be useful if the sas programs are run by non-sas users and
> they dont have any idea about the log or program. Hope somebody can assist
> me in this issue......
> thanks everybody,