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 (November 2007, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 24 Nov 2007 22:57:14 -0800
Reply-To:     -bwg <barry.grau@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         -bwg <barry.grau@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: ZIPSTATE function, turn off invalid argument NOTE?
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset=ISO-8859-1

On Nov 24, 8:27 am, "Richard A. DeVenezia" <rdevene...@wildblue.net> wrote: > The ZIPSTATE function evaluates the first three digits of a zip code (the > zone) and returns the state that corresponds to the zone. > > data x; > do zip = 0 to 1e5 by 1e2; > state = zipstate(zip); > if state eq '' then put zip= state=; > end; > run; > > When a zipcode is in invalid there is the following in the log: > NOTE: Invalid argument to function ZIPSTATE at line # column #. > > Is there a way to turn this note off, and leave other notes on ? > > Looking for something like the ?? of INPUT(), such as > input ('ABC', ?? 3.) > which prevents _error_ from being assigned. > > -- > Richard A. DeVenezia

Build a format from the valid results of your loop and use it in place of the function.

-bwg


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