<?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: ZipCityDeistance error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977528#M378501</link>
    <description>&lt;P&gt;To make sure you have the most current zipcode data set, see the following:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sas.service-now.com/csm/en/how-to-replace-the-sashelp-zipcode-data-set?id=kb_article_view&amp;amp;sysparm_article=KB0040528" target="_self"&gt;https://sas.service-now.com/csm/en/how-to-replace-the-sashelp-zipcode-data-set?id=kb_article_view&amp;amp;sysparm_article=KB0040528&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Oct 2025 13:56:57 GMT</pubDate>
    <dc:creator>Kathryn_SAS</dc:creator>
    <dc:date>2025-10-21T13:56:57Z</dc:date>
    <item>
      <title>ZipCityDistance error for certain ZIP codes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977525#M378498</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I am trying to run a code which givers error particular values of zipcode.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
dist=zipcitydistance(36310,36061);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The error in the log is&lt;/P&gt;
&lt;PRE&gt;NOTE: ZIP code value 36310 could not be found in SASHELP.ZIPCODE.
NOTE: Invalid argument to function ZIPCITYDISTANCE('36310','36061') at line 27 column 6.
dist=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      1 at 27:6   &lt;/PRE&gt;
&lt;P&gt;If I change the order of zipcode in the function taking 36061 first, then the error would be&lt;/P&gt;
&lt;PRE&gt;24         
25         GOPTIONS ACCESSIBLE;
26         data _null_;
27         dist=zipcitydistance(36061,36310);
28         run;

NOTE: ZIP code value 36061 could not be found in SASHELP.ZIPCODE.
NOTE: Invalid argument to function ZIPCITYDISTANCE(36061,36310) at line 27 column 6.
dist=. _ERROR_=1 _N_=1
NOTE: Mathematical operations could not be performed at the following places. The results of the operations have been set to 
      missing values.
      Each place is given by: (Number of times) at (Line):(Column).
      1 at 27:6   &lt;/PRE&gt;
&lt;P&gt;The server has been updated for the latest values of zipcodes.&lt;BR /&gt;Looks like I missing something. Can anybody help?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 14:55:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977525#M378498</guid>
      <dc:creator>thesasuser</dc:creator>
      <dc:date>2025-10-21T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: ZipCityDeistance error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977527#M378500</link>
      <description>&lt;P&gt;Suggest looking at the records in sashelp.zipcode to make sure the zip codes are there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=sashelp.zipcode;
  var zip ;
  where zip in (36061 36310) ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have them in my data, and your code runs fine:&lt;/P&gt;
&lt;PRE&gt;16   data _null_;
17   dist=zipcitydistance(36310,36061);
18   put dist= ;
19   run;

dist=41.5
&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Oct 2025 13:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977527#M378500</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2025-10-21T13:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: ZipCityDeistance error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977528#M378501</link>
      <description>&lt;P&gt;To make sure you have the most current zipcode data set, see the following:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sas.service-now.com/csm/en/how-to-replace-the-sashelp-zipcode-data-set?id=kb_article_view&amp;amp;sysparm_article=KB0040528" target="_self"&gt;https://sas.service-now.com/csm/en/how-to-replace-the-sashelp-zipcode-data-set?id=kb_article_view&amp;amp;sysparm_article=KB0040528&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Oct 2025 13:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ZipCityDistance-error-for-certain-ZIP-codes/m-p/977528#M378501</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-10-21T13:56:57Z</dc:date>
    </item>
  </channel>
</rss>

