<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: SAS Zipcode dataset and zip to County Match in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26103#M764</link>
    <description>You can download Congressional District relationship tables from: &lt;A href="http://www.census.gov/geo/www/cd110th/tables110.html" target="_blank"&gt;http://www.census.gov/geo/www/cd110th/tables110.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
That page contains tables by state or for the entire US. However, none of those tables are linked by ZIP code. The closest one would be the table linking Congressional Districts by ZCTA (ZIP code tabulation area). Be aware that ZCTAs are not complete, i.e. they do not contain every ZIP code in the US. Some ZCTAs will also include portions of more than one Congressional District.&lt;BR /&gt;
&lt;BR /&gt;
There is also a table linking districts by county, but that is not a one-to-one relationship. Some counties will contain parts of multiple Congressional Districts. You'll see the same issue with the table linking districts by FIPS Place codes.&lt;BR /&gt;
&lt;BR /&gt;
So, you can obtain a complete listing of US Congressional District codes, but it may be difficult to merge them into other data sets.</description>
    <pubDate>Tue, 15 Dec 2009 18:23:02 GMT</pubDate>
    <dc:creator>EdO_sas</dc:creator>
    <dc:date>2009-12-15T18:23:02Z</dc:date>
    <item>
      <title>SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26097#M758</link>
      <description>Since certain 5-digit zipcodes can cross county lines, how does SAS decide which county to assign to a 5digit ZIP in the ZIPCOSE dataset?  My understanding is that one needs 9-digit zips to make the proper match.  If that is the case, is there a 9-digit zip to State &amp;amp; County dataset that does this?</description>
      <pubDate>Fri, 04 Dec 2009 17:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26097#M758</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2009-12-04T17:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26098#M759</link>
      <description>SAS does not decide where to locate the centroids in the SASHELP.ZIPCODE data set. That data is not created by SAS but is purchased from zipcodedownload.com.&lt;BR /&gt;
&lt;BR /&gt;
By 9-digit ZIP I assume you mean ZIP+4. The only ZIP+4 data set currently supplied by SAS is the PROC GEOCODE lookup data used for ZIP+4 geocoding. It was generated from Census Bureau TIGER files and is in the downloads section of the SAS Maps Online site. However, the current data set does not contain county values. &lt;BR /&gt;
&lt;BR /&gt;
When it is updated, we will add county values if possible. However, the latest release of TIGER/Line files does not contain ZIP+4 values. With the recent change from the older RT format files to shapefiles and dbf files, the ZIP+4 values were omitted. The variables are there, but all the values are missing.</description>
      <pubDate>Fri, 04 Dec 2009 20:25:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26098#M759</guid>
      <dc:creator>EdO_sas</dc:creator>
      <dc:date>2009-12-04T20:25:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26099#M760</link>
      <description>To add a little to what Ed says...&lt;BR /&gt;
&lt;BR /&gt;
Once you have a lat/long coordinate (be it a zipcode centroid, a zip+4 centroid, or better yet a coordinate obtained from street-level geocoding), you could then take that lat/long value and determine what county it's in by running "proc ginside" against that point, and a map like maps.counties.

Message was edited by: Robert Allison @ SAS</description>
      <pubDate>Fri, 04 Dec 2009 20:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26099#M760</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-12-04T20:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26100#M761</link>
      <description>So, I used PROC GINSIDE and it worked...but it only gives me the state and county codes.  Now I need to get the state and county NAMES.  How do I do that?  Thanks, John</description>
      <pubDate>Tue, 15 Dec 2009 14:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26100#M761</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2009-12-15T14:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26101#M762</link>
      <description>You could use something like this (the values I've hardcoded are for Wake County, NC)...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
data foo;&lt;BR /&gt;
state=37;&lt;BR /&gt;
county=183;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* State name is easy, using SAS functions */&lt;BR /&gt;
data foo; set foo;&lt;BR /&gt;
state_name=fipnamel(state);&lt;BR /&gt;
state_abbrev=fipstate(state);&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/* County name is a little harder, doing a lookup */&lt;BR /&gt;
proc sql;&lt;BR /&gt;
create table foo as&lt;BR /&gt;
 select foo.*, cntyname.countynm&lt;BR /&gt;
 from foo left join maps.cntyname&lt;BR /&gt;
 on foo.state=cntyname.state and foo.county=cntyname.county;&lt;BR /&gt;
quit; run;</description>
      <pubDate>Tue, 15 Dec 2009 15:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26101#M762</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2009-12-15T15:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26102#M763</link>
      <description>Thanks to all for your help.  Everything you have told me is working so far.  Let me push the envelope....any hope for getting Congressional District Codes into the situation?</description>
      <pubDate>Tue, 15 Dec 2009 17:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26102#M763</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2009-12-15T17:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26103#M764</link>
      <description>You can download Congressional District relationship tables from: &lt;A href="http://www.census.gov/geo/www/cd110th/tables110.html" target="_blank"&gt;http://www.census.gov/geo/www/cd110th/tables110.html&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
That page contains tables by state or for the entire US. However, none of those tables are linked by ZIP code. The closest one would be the table linking Congressional Districts by ZCTA (ZIP code tabulation area). Be aware that ZCTAs are not complete, i.e. they do not contain every ZIP code in the US. Some ZCTAs will also include portions of more than one Congressional District.&lt;BR /&gt;
&lt;BR /&gt;
There is also a table linking districts by county, but that is not a one-to-one relationship. Some counties will contain parts of multiple Congressional Districts. You'll see the same issue with the table linking districts by FIPS Place codes.&lt;BR /&gt;
&lt;BR /&gt;
So, you can obtain a complete listing of US Congressional District codes, but it may be difficult to merge them into other data sets.</description>
      <pubDate>Tue, 15 Dec 2009 18:23:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26103#M764</guid>
      <dc:creator>EdO_sas</dc:creator>
      <dc:date>2009-12-15T18:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26104#M765</link>
      <description>I have been playing with the SAS zip + 4 file and I am now confused.  My downloaded SAS zip + 4 file contains just over 16 million records.  The US Postal Service zip + 4 file, which we have, contains around 43 million records.  Is the SAS file complete?   What is the difference?</description>
      <pubDate>Tue, 22 Dec 2009 16:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26104#M765</guid>
      <dc:creator>JohnH</dc:creator>
      <dc:date>2009-12-22T16:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26105#M766</link>
      <description>The Census Bureau does not maintain that their ZIP-related products are complete or official. This NESUG paper by a Census Bureau analyst descibes her detailed examination of TIGER/ZIP+4 data: &lt;BR /&gt;
  &lt;A href="http://www.nesug.org/proceedings/nesug06/ap/ap10.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug06/ap/ap10.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
In it the author states, "The Address Information System Products Technical Guide states that the complete ZIP+4 Product contains approximately 35 million records. Compared with the ZIP+4 product, the TIGER/ZIP+4 data product contains fewer records."&lt;BR /&gt;
&lt;BR /&gt;
If a listing of ZIP+4 data that is more complete than what we can provide using the TIGER products is needed, you may have to contact third party data vendors. I am not sure if I can name specific firms here but a web search should turn up several. There is also Dataflux which specializes in US Postal Service data and address cleansing and validation. I am pretty sure I can mention them by name as they are a SAS subsidary. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have discussed the ZIP+4 status with tech support at the Census Bureau. Their current MAF/TIGER Accuracy Improvement Project and the upcoming 2010 census should greatly improve their data quality. Until we can obtain and review the 2010 census data, what is on Maps Online is all we have.

Message was edited by: EdO@sas</description>
      <pubDate>Tue, 22 Dec 2009 16:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26105#M766</guid>
      <dc:creator>EdO_sas</dc:creator>
      <dc:date>2009-12-22T16:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Zipcode dataset and zip to County Match</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26106#M767</link>
      <description>hi ... there is a web site ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.melissadata.com/lookups/countyzip.asp" target="_blank"&gt;http://www.melissadata.com/lookups/countyzip.asp&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
that will give you a table of ZIPs in a specified state+county but that requires a manual selection of state+county and all you get is an HTML table&lt;BR /&gt;
&lt;BR /&gt;
if you look at ...&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.sascommunity.org/wiki/County_Validation_of_ZIP_Codes" target="_blank"&gt;http://www.sascommunity.org/wiki/County_Validation_of_ZIP_Codes&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
you can use the SAS code that is contained in the posting to automate the reading of the STATE+COUNTY look up ... the program produces both a data set and a spreadsheet of ZIPS in any given state, plus it shows up to three counties for each ZIP and the percentage of the population of that ZIP in each county (all the information is taken from the web site)&lt;BR /&gt;
&lt;BR /&gt;
you can use the data set to augment to information in SASHELP.ZIPCODE</description>
      <pubDate>Thu, 04 Feb 2010 14:15:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SAS-Zipcode-dataset-and-zip-to-County-Match/m-p/26106#M767</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2010-02-04T14:15:11Z</dc:date>
    </item>
  </channel>
</rss>

