LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 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, 17 Sep 2009 07:24:37 -0700
Reply-To:     jfh@stanfordalumni.org
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jack Hamilton <jfh@STANFORDALUMNI.ORG>
Subject:      Re: Awesome! The NOTE2ERR option
Comments: To: Lou <lpogoda@HOTMAIL.COM>
In-Reply-To:  <h8tbsp$5cm$1@news.eternal-september.org>
Content-Type: text/plain; charset="ISO-8859-1"

I use NOTE2ERR, but I think it would be better if the user had some control over which notes should turn into errors. For example, the other day I had a program abend because I passed an invalid ZIP code to the ZIPSTATE function. To me, that seems like a different, and more forgiveable, type of error than assigning a character value to a numeric field.

On Thu, 17 Sep 2009 09:00:12 -0400, "Lou" <lpogoda@HOTMAIL.COM> said: > "sasplumber" <sasplumber@hotmail.com> wrote in message > news:cc5f612e-2740-4db4-a4ee-88cb6185ff86@p23g2000vbl.googlegroups.com... > > The folks that run the NOTE blog just blew me away with their latest > > posting. I have never heard of the NOTE2ERR option, but it makes SAS > > behave in the way it should always have done. it tells SAS to report > > uninitialized values and implicit conversions from char to num as > > *errors* > > I don't know about the "should always" - SAS was originally intended to > give > non-programmers access to computing power, and a lot was done (like > automatic type conversions) to protect non-programmers from themselves. > > But that was then and this is now. This is a terrific option - pity it's > undocumented. As a matter of policy, we do not use undocumented stuff in > production code. > > > > You've got to see this to believe it... http://notecolon.blogspot.com > > > > Great blog in general. I'm subscribed to their daily email digest so I > > don't have to keep visiting their site. It sends me an email on any > > day when there's a new post. > > > > -Plumber

-- Jack Hamilton Sacramento, California jfh@alumni.stanford.org <== Use this, not jfh @ stanfordalumni.org

Tots units fem força!


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