<?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 How to calculate the distance between two 9 digits zip code? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-distance-between-two-9-digits-zip-code/m-p/678806#M204941</link>
    <description>&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;Does zipcitydistance(zip1, zip2)&amp;nbsp;&amp;nbsp; &amp;nbsp;calculate only 5 digit zip code ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;I need to calculate the distance between two 9 digit zipcodes.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;when I ran the 9 digits zipcode to calculate the distance, the log shows error "&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;NOTE: Invalid argument to function ZIPCITYDISTANCE('006460000','010133140') at line 28 column 13."&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; distance=zipcitydistance(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'006460000'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'010133140'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;put&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="Courier New" size="3" color="#800080"&gt; &amp;nbsp;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; distance &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;' miles'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Can someone share how to calculate the distance between 9 digit zip codes?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Thanks &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Aug 2020 03:44:25 GMT</pubDate>
    <dc:creator>GraceStehlin98</dc:creator>
    <dc:date>2020-08-24T03:44:25Z</dc:date>
    <item>
      <title>How to calculate the distance between two 9 digits zip code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-distance-between-two-9-digits-zip-code/m-p/678806#M204941</link>
      <description>&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;Does zipcitydistance(zip1, zip2)&amp;nbsp;&amp;nbsp; &amp;nbsp;calculate only 5 digit zip code ?&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;I need to calculate the distance between two 9 digit zipcodes.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;when I ran the 9 digits zipcode to calculate the distance, the log shows error "&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;NOTE: Invalid argument to function ZIPCITYDISTANCE('006460000','010133140') at line 28 column 13."&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt; &lt;FONT face="Courier New" size="3" color="#0000ff"&gt;_null_&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; distance=zipcitydistance(&lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'006460000'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#800080"&gt;'010133140'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;put&lt;/FONT&gt;&amp;nbsp;&lt;FONT face="Courier New" size="3" color="#800080"&gt; &amp;nbsp;'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; distance &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3" color="#008080"&gt;8.&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT face="Courier New" size="3" color="#800080"&gt;' miles'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3" color="#000080"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Can someone share how to calculate the distance between 9 digit zip codes?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;Thanks &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 03:44:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-distance-between-two-9-digits-zip-code/m-p/678806#M204941</guid>
      <dc:creator>GraceStehlin98</dc:creator>
      <dc:date>2020-08-24T03:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate the distance between two 9 digits zip code?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-distance-between-two-9-digits-zip-code/m-p/678809#M204943</link>
      <description>&lt;P&gt;The function zipcitydistance uses sashelp.zip (as documented) and that dataset contains only the five digit zip codes. So you need another function and data-source to calculate distances. Proc geocode could be used here, you want to read the documentation.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Aug 2020 04:50:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-calculate-the-distance-between-two-9-digits-zip-code/m-p/678809#M204943</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2020-08-24T04:50:22Z</dc:date>
    </item>
  </channel>
</rss>

