LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (May 2009, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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.


Back to: Top of message | Previous page | Main SAS-L page