<?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: find addresses within 30 miles radius in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61544#M13380</link>
    <description>your less than or equal to sign chopped of most of your SQL and question.</description>
    <pubDate>Wed, 04 May 2011 01:09:48 GMT</pubDate>
    <dc:creator>Doc_Duke</dc:creator>
    <dc:date>2011-05-04T01:09:48Z</dc:date>
    <item>
      <title>find addresses within 30 miles radius</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61543#M13379</link>
      <description>Suppose I have a address dataset(addr_lst) which has 100,000 US addresses and the following fields: idx, address, city, state, zip, x, y.&lt;BR /&gt;
&lt;BR /&gt;
I want to find the addresses within 30 miles radius of each address.&lt;BR /&gt;
&lt;BR /&gt;
Here is my sql to do this:&lt;BR /&gt;
&lt;BR /&gt;
proc sql;&lt;BR /&gt;
  create table addr_30m as&lt;BR /&gt;
  select a.idx,&lt;BR /&gt;
            b.idx as idx2,&lt;BR /&gt;
            geodist(a.y, a.x, b.y, b.x,'M') as dist&lt;BR /&gt;
  from addr_lst a, addr_lst b&lt;BR /&gt;
  where geodist(a.y, a.x, b.y, b.x, 'M')&amp;lt;=30&lt;BR /&gt;
; quit;&lt;BR /&gt;
&lt;BR /&gt;
It is very slow because it uses Cartesian product. Is there any better way to speed up the computation?</description>
      <pubDate>Wed, 04 May 2011 00:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61543#M13379</guid>
      <dc:creator>MarcTC</dc:creator>
      <dc:date>2011-05-04T00:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: find addresses within 30 miles radius</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61544#M13380</link>
      <description>your less than or equal to sign chopped of most of your SQL and question.</description>
      <pubDate>Wed, 04 May 2011 01:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61544#M13380</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-05-04T01:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: find addresses within 30 miles radius</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61545#M13381</link>
      <description>...&lt;BR /&gt;&lt;BR /&gt;
&amp;gt; It is very slow because it uses Cartesian product. Is&lt;BR /&gt;&lt;BR /&gt;
&amp;gt; there any better way to speed up the computation?&lt;BR /&gt;&lt;BR /&gt;
...&lt;BR /&gt;&lt;BR /&gt;
See Howard Schreier's &lt;A href="http://www.howles.com/saspapers/at008.pdf"&gt;excellent NESUG 16 (2003) paper&lt;/A&gt;.</description>
      <pubDate>Wed, 04 May 2011 22:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61545#M13381</guid>
      <dc:creator>chang_y_chung_hotmail_com</dc:creator>
      <dc:date>2011-05-04T22:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: find addresses within 30 miles radius</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61546#M13382</link>
      <description>"See Howard Schreier's excellent NESUG 16 (2003) paper. "&lt;BR /&gt;
&lt;BR /&gt;
Thanks, Chung expert.</description>
      <pubDate>Wed, 04 May 2011 23:19:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-addresses-within-30-miles-radius/m-p/61546#M13382</guid>
      <dc:creator>MarcTC</dc:creator>
      <dc:date>2011-05-04T23:19:01Z</dc:date>
    </item>
  </channel>
</rss>

