Date: Thu, 21 May 2009 01:46:05 -0700
Reply-To: Kevin Y <kevin77711@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Kevin Y <kevin77711@YAHOO.COM>
Subject: abort
Content-Type: text/plain; charset=iso-8859-1
How can I stop the SAS running when an error happens? See the log below. I hope that SAS completely stops whenever an error occurs, not even running with OBS=0. Thanks!!
3 data claim;
4 set hosp.dischage;
ERROR: File HOSP.DISCHAGE.DATA does not exist.^MERROR: File HOSP.DISCHAGE.DATA does not exist.^MERROR: File HOSP.DISCHAGE.DATA does not exist.
5 if _error_ then abort;
6 run;
NOTE: The SAS System stopped processing this step because of errors.
NOTE: SAS set option OBS=0 and will continue to check statements. This may cause NOTE: No observations in data set.
|