<?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 Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58481#M1981</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RobertAllison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I should eliminate all the zipcodes that are not included in sashelp.zipcode to avoid from having the same error messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zipcitydistance function is ONLY for the zipcode downloaded from SAS. If I have a list of zipcodes with their longitude and latitude which are outside USA. Can I use the same function for distance calculations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mspak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Mar 2012 06:30:38 GMT</pubDate>
    <dc:creator>mspak</dc:creator>
    <dc:date>2012-03-17T06:30:38Z</dc:date>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58472#M1972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good days to all helpers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am user of&amp;nbsp; Window 7 64 bits with my SAS9.3 64 bits installed into PC. I tried to run the following SAS function to calculate the distance between 2 locations in US as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data distance; set pair;&lt;/P&gt;&lt;P&gt;distance=zipcitydistance(zip, metro_zip);&lt;/P&gt;&lt;P&gt;if distance^=. then output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zip and metro_zip are two zipcode columns in SAS data file. Both zip (format:&amp;nbsp; Z5.&amp;nbsp; informat: None) and metro_zip&amp;nbsp; (format:&amp;nbsp; None&amp;nbsp; informat: None) are stored as numeric variables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, unfavourable outcome was obtained. It is stated in log that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NOTE: Invalid argument to function ZIPCITYDISTANCE at line 3 column 10.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tic=3ATTUF zip=40593 metro_zip=30002 City=AVONDALE ESTATES sum_rank=10 distance=. _ERROR_=1 _N_=1420&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The above error was repeated many times in log.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that anyone can help to solve my problem. I hope to understand the reason of the error message and any suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mspak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Renee Harper (I cleaned up your title a bit to make it work better in the notification features.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 14:47:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58472#M1972</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-02-18T14:47:00Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58473#M1973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; If some work and others don't perhaps SASHELP.ZIPCODE does not contain the zip code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 14:58:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58473#M1973</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-02-18T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58474#M1974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of the zipcodes are based on a reliable US zipcode database and a financial database which firms' zipcodes are based in US. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, do you think I should use the longitude and latitude to calculate distance instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 15:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58474#M1974</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-02-18T15:16:13Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58475#M1975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The one the function seems to be missing is your base zipcode, 40593.&amp;nbsp; You could use one that is only 1.8 miles away, namely 40502&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Feb 2012 15:22:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58475#M1975</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-18T15:22:44Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58476#M1976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply. I get my output now. I think some of the zipcodes might be invalid. I have output my data only for those with the valid zipcodes. :smileysilly:&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 04:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58476#M1976</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-02-19T04:33:58Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58477#M1977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you decide to look up zip codes that are close to the ones you are missing you might be interested in:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mapszipcode.com/zip-code-radius"&gt;http://www.mapszipcode.com/zip-code-radius&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Feb 2012 05:28:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58477#M1977</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-19T05:28:37Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58478#M1978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was going to suggest that you update your SASHELP.ZIPCODE file with the newest one at &lt;A href="http://support.sas.com/mapsonline"&gt;http://support.sas.com/mapsonline&lt;/A&gt; in the download section.&amp;nbsp; ZIP Codes change frequently and we place a new data set in the download area every quarter.&amp;nbsp; These are based on the current USPS ZIP Codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the ZIP Code 40593 isn't valid according to the USPS ZIP Code checker.&amp;nbsp; It may be one that became obsolete and was dropped.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use Proc GEOCODE with METHOD=ZIP or a DATA STEP or PROC SQL to match against the latest SASHELP.ZIPCODE to validate your ZIP Codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Feb 2012 15:19:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58478#M1978</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2012-02-20T15:19:30Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58479#M1979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for suggestion. I did download the SAS zipcode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mspak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2012 00:01:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58479#M1979</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-03-15T00:01:26Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58480#M1980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you've got this on basically figured out ... but just in case it might be useful to some of the people reading, here is one (of many) ways to limit the input data to only those zipcodes that are in the sashelp.zipcode table, so the zipcitydistance runs cleanly...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data pair;&lt;BR /&gt;input zip metro_zip;&lt;BR /&gt;datalines;&lt;BR /&gt;27607 27513&lt;BR /&gt;40593 27513&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;create table pair as&lt;BR /&gt;select * from pair&lt;BR /&gt;where zip in (select unique zip from sashelp.zipcode)&lt;BR /&gt;and metro_zip in (select unique zip from sashelp.zipcode);&lt;BR /&gt;quit; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data distance; set pair;&lt;BR /&gt;distance=zipcitydistance(zip, metro_zip);&lt;BR /&gt;if distance^=. then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Mar 2012 18:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58480#M1980</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-03-16T18:21:34Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58481#M1981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RobertAllison,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks. I should eliminate all the zipcodes that are not included in sashelp.zipcode to avoid from having the same error messages. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zipcitydistance function is ONLY for the zipcode downloaded from SAS. If I have a list of zipcodes with their longitude and latitude which are outside USA. Can I use the same function for distance calculations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;mspak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Mar 2012 06:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58481#M1981</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-03-17T06:30:38Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58482#M1982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you already have the lat/long of the locations, I would recommend using the geodist() function to calculate the distance...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003113162.htm"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a003113162.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Mar 2012 12:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58482#M1982</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2012-03-19T12:37:41Z</dc:date>
    </item>
    <item>
      <title>Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANCE Invalid argument to function ZIPCITYDISTANC Invalid argument to function ZIPCITYDISTANC</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58483#M1983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mspak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Mar 2012 10:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Invalid-argument-to-function-ZIPCITYDISTANCE-Invalid-argument-to/m-p/58483#M1983</guid>
      <dc:creator>mspak</dc:creator>
      <dc:date>2012-03-20T10:38:23Z</dc:date>
    </item>
  </channel>
</rss>

