|Date: ||Sun, 25 Nov 2007 22:35:16 -0500|
|Reply-To: ||"Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>|
|Sender: ||"SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>|
|From: ||"Richard A. DeVenezia" <rdevenezia@WILDBLUE.NET>|
|Subject: ||Re: ZIPSTATE function, turn off invalid argument NOTE?|
|Content-Type: ||text/plain; charset="iso-8859-15"|
Paul Dorfman wrote:
> I would abstain from using the function at all if your purpose is
> indeed to return the state from the first 3 zip digits, the reason
> being two-fold:
> Hence I have to take issue with your description of what the function
> does. It accepts the full zip as its argument for a reason - a full
> zip corresponds to a unique state.
I was quoting the ZIPSTATE documentation vis-a-vis the 3zip->state mapping.
> 2. The function does not validate zip codes. Hence, if you need
> accuracy (and I presume you do) you had better use sashelp.zipcode to
> emulate the function via a format or hash, which would tangentially
> also eliminate the log notes issue you started with.
Thanks for the tip and the link.