<?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 COUNTY CODES FROM ZIP CODES in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252866#M48075</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Zipcodes/CITY where the patient is from and I want to find the corresponsing&amp;nbsp;&lt;STRONG&gt;COUNTY code&lt;/STRONG&gt; to which it belongs.&lt;/P&gt;&lt;P&gt;Is it possible with SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 23:47:08 GMT</pubDate>
    <dc:creator>robertrao</dc:creator>
    <dc:date>2016-02-26T23:47:08Z</dc:date>
    <item>
      <title>COUNTY CODES FROM ZIP CODES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252866#M48075</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Zipcodes/CITY where the patient is from and I want to find the corresponsing&amp;nbsp;&lt;STRONG&gt;COUNTY code&lt;/STRONG&gt; to which it belongs.&lt;/P&gt;&lt;P&gt;Is it possible with SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 23:47:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252866#M48075</guid>
      <dc:creator>robertrao</dc:creator>
      <dc:date>2016-02-26T23:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTY CODES FROM ZIP CODES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252872#M48078</link>
      <description>&lt;P&gt;Yes, look at the sashelp.zip file. There may be a function ... But I can't recall.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 01:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252872#M48078</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-27T01:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: COUNTY CODES FROM ZIP CODES</title>
      <link>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252875#M48081</link>
      <description>&lt;P&gt;There is no function for 'zip to county code', and I think the reason lies in the fact that it is not uncommon one zipcode could be shared by multiple counties(&lt;A href="https://www.zipinfo.com/products/cz/cz.htm" target="_self"&gt;Some say as many as 20%&lt;/A&gt;).&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;is correct, you need to use sashelp.zipcode table, with the help of city name you have, your zip code should reach a satisfactory pin down on county code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update:&lt;/P&gt;
&lt;P&gt;When using&amp;nbsp;&lt;SPAN&gt;sashelp.zipcode, the 'county' variable is the county code within states. If you need five digits county code, you need to&amp;nbsp;concatenate 'state' as z2. and 'county' as z3.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Feb 2016 01:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/COUNTY-CODES-FROM-ZIP-CODES/m-p/252875#M48081</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-27T01:44:22Z</dc:date>
    </item>
  </channel>
</rss>

