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>
Subject: Re: ZIPSTATE function, turn off invalid argument NOTE?
Content-Type: text/plain; charset=ISO-8859-1
On Nov 24, 8:27 am, "Richard A. DeVenezia" <rdevene...@wildblue.net>
> 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=;
> 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.