<?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: Asking Advices regarding SAS GEOdist Function in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182332#M9464</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL + geodis()&amp;nbsp; -- sorry I have forgetton. You need check documentation. Here is dummy code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table distance as&lt;/P&gt;&lt;P&gt;select a.* ,b.id as _id, geodis(.......)&amp;nbsp; as distance &lt;/P&gt;&lt;P&gt;&amp;nbsp; from have a, have b;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that you need transpose your table distance to get final output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 14:22:50 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2014-07-17T14:22:50Z</dc:date>
    <item>
      <title>Asking Advices regarding SAS GEOdist Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182331#M9463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="SAS Q.png" class="jive-image-thumbnail jive-image" height="546" src="https://communities.sas.com/legacyfs/online/6829_SAS Q.png" style="width: 802.9411764705883px; height: 546px;" width="803" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 06:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182331#M9463</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2014-07-17T06:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Asking Advices regarding SAS GEOdist Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182332#M9464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SQL + geodis()&amp;nbsp; -- sorry I have forgetton. You need check documentation. Here is dummy code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table distance as&lt;/P&gt;&lt;P&gt;select a.* ,b.id as _id, geodis(.......)&amp;nbsp; as distance &lt;/P&gt;&lt;P&gt;&amp;nbsp; from have a, have b;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after that you need transpose your table distance to get final output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 14:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182332#M9464</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-07-17T14:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Asking Advices regarding SAS GEOdist Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182333#M9465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Syntaxt for&lt;/P&gt;&lt;P&gt;&lt;SPAN class="strong"&gt;GEODIST&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;latitude-1&lt;/SPAN&gt;, &lt;SPAN class="emph"&gt;longitude-1&lt;/SPAN&gt;, &lt;SPAN class="emph"&gt;latitude-2&lt;/SPAN&gt;, &lt;SPAN class="emph"&gt;longitude-2&lt;/SPAN&gt; &amp;lt;,&lt;SPAN class="emph"&gt;options&lt;/SPAN&gt;&amp;gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so use Ksharps code and bring in the b version of lat and long :&lt;/P&gt;&lt;P&gt;add to the select statement&lt;/P&gt;&lt;P&gt;b.longitude as blong, b.latitude as blat, geodist (latitude, longitude, blat, blong) as distance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may likely want the store from the b data set as well so you know which distance which would bring up b.id as bstore in the select as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 14:49:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182333#M9465</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-07-17T14:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Asking Advices regarding SAS GEOdist Function</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182334#M9466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to all. I finally found 'how to'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 01:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Asking-Advices-regarding-SAS-GEOdist-Function/m-p/182334#M9466</guid>
      <dc:creator>Yondori</dc:creator>
      <dc:date>2014-07-21T01:24:43Z</dc:date>
    </item>
  </channel>
</rss>

