<?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: Proc geocode issues in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416848#M67657</link>
    <description>&lt;P&gt;Thanks for the replies - the issue is resolved.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 20:18:14 GMT</pubDate>
    <dc:creator>rprincey</dc:creator>
    <dc:date>2017-11-28T20:18:14Z</dc:date>
    <item>
      <title>Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416702#M67635</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've run proc geocode on a dataset containing address, city, state, zip but it only returned latitudes in the high negatives (ie, down in antartica).&amp;nbsp; &amp;nbsp;The code ran successfully and showed a high percentage of matches at the street level, but the latitudes are wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a known bug with the procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;16 proc geocode /* Invoke geocoding procedure */&lt;BR /&gt;17 method=street /* Specify geocoding method */&lt;BR /&gt;18 data=members_transz /* Input data set of addresses */&lt;BR /&gt;19 out=members_geo /* Output data set with X/Y values */&lt;BR /&gt;20 addressvar=address2&lt;BR /&gt;21 addresszipvar=zip&lt;BR /&gt;22 addressstatevar=state&lt;BR /&gt;23 addresscityvar=city&lt;BR /&gt;24 lookupstreet=lookup.usm&lt;BR /&gt;25 ;&lt;BR /&gt;26 run;&lt;/P&gt;
&lt;P&gt;NOTE: Address data set BOB.IMAX_MEMBERS_DRVS_TRANSZ has 24,957,395 observations.&lt;BR /&gt; &lt;BR /&gt; _________________ Geocoding Progress _____________________&lt;BR /&gt; _____ Completed ____ _____________ Time _______________&lt;BR /&gt; Percent Obs Current Remaining Completion&lt;BR /&gt; 0% 0 15:07:31 -- --&lt;BR /&gt; 1% 249,574 15:07:45 00:23:29 15:31:15&lt;BR /&gt; 2% 499,148 15:08:00 00:23:29 15:31:29&lt;BR /&gt; 3% 748,722 15:15:36 04:21:28 19:37:04&lt;BR /&gt; 4% 998,296 15:21:51 05:43:53 21:05:44&lt;BR /&gt; 5% 1,247,870 15:25:31 05:41:53 21:07:24&lt;BR /&gt; 10% 2,495,740 15:37:07 04:26:21 20:03:28&lt;BR /&gt; 15% 3,743,610 15:46:22 03:40:11 19:26:34&lt;BR /&gt; 20% 4,991,480 15:55:05 03:10:17 19:05:23&lt;BR /&gt; 25% 6,239,349 16:03:33 02:48:07 18:51:41&lt;BR /&gt; 30% 7,487,219 16:11:57 02:30:19 18:42:17&lt;BR /&gt; 35% 8,735,089 16:20:14 02:15:03 18:35:18&lt;BR /&gt; 40% 9,982,959 16:28:31 02:01:30 18:30:02&lt;BR /&gt; 45% 11,230,828 16:36:49 01:49:08 18:25:58&lt;BR /&gt; 50% 12,478,698 16:45:02 01:37:31 18:22:33&lt;BR /&gt; 55% 13,726,568 16:53:18 01:26:33 18:19:52&lt;BR /&gt; 60% 14,974,438 17:01:36 01:16:03 18:17:40&lt;BR /&gt; 65% 16,222,307 17:09:57 01:05:55 18:15:53&lt;BR /&gt; 70% 17,470,177 17:18:17 00:56:02 18:14:19&lt;BR /&gt; 75% 18,718,047 17:26:37 00:46:21 18:12:59&lt;BR /&gt; 80% 19,965,917 17:34:57 00:36:51 18:11:49&lt;BR /&gt; 85% 21,213,786 17:43:13 00:27:28 18:10:42&lt;BR /&gt; 90% 22,461,656 17:51:30 00:18:13 18:09:43&lt;BR /&gt; 95% 23,709,526 17:59:43 00:09:03 18:08:47&lt;BR /&gt; 100% 24,957,395 18:07:44 00:00:00 --&lt;/P&gt;
&lt;P&gt;_________ Geocoding Summary _____________________________&lt;BR /&gt; Address data: BOB.IMAX_MEMBERS_DRVS_TRANSZ&lt;BR /&gt; Output data: WORK.IMAX_MEMBERS_DRVS_GEO&lt;BR /&gt; STREET lookup data: LOOKUP.USM&lt;BR /&gt; CITY lookup data: MAPSGFK.USCITY_ALL&lt;BR /&gt; ZIP lookup data: SASHELP.ZIPCODE&lt;BR /&gt; Geocoding method: Street level&lt;BR /&gt; Run date: 27Nov2017&lt;BR /&gt; Obs processed: 24,957,395&lt;BR /&gt; Elapsed time: 03:00:13&lt;BR /&gt; Obs per minute: 138,477&lt;BR /&gt; Street matches: 21,568,915&lt;BR /&gt; ZIP matches: 3,324,278&lt;BR /&gt; City matches: 0&lt;BR /&gt; Not matched: 64,202&lt;BR /&gt; _________&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 14:35:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416702#M67635</guid>
      <dc:creator>rprincey</dc:creator>
      <dc:date>2017-11-28T14:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416720#M67636</link>
      <description>&lt;P&gt;I would say the most likely place to look is at the values in you lookup dataset. Your lookup set may be projected for a specific use and not returning actual latitude and longitude values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 15:21:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416720#M67636</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-28T15:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416744#M67642</link>
      <description>&lt;P&gt;Not that I'm aware of...have you checked what method was used for those particular records, ie the match/lookup type I believe it's called..&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to post a few addresses - or similar type addresses that we can replicate the issue with?&lt;/P&gt;
&lt;P&gt;And what version of SAS are you using and did you update your maps data from here;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/rnd/datavisualization/mapsonline/html/geocode.html" target="_blank"&gt;http://support.sas.com/rnd/datavisualization/mapsonline/html/geocode.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 16:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416744#M67642</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-28T16:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416848#M67657</link>
      <description>&lt;P&gt;Thanks for the replies - the issue is resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:18:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416848#M67657</guid>
      <dc:creator>rprincey</dc:creator>
      <dc:date>2017-11-28T20:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416869#M67661</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8451"&gt;@rprincey&lt;/a&gt;&amp;nbsp;What was the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:44:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416869#M67661</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-28T20:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416875#M67664</link>
      <description>I unfortunately don't know.  When I first put the data in map (tableau), it all showed up in Antartica.&lt;BR /&gt;Then I re-ran it and it worked.&lt;BR /&gt;The one thing that may have caused the problem was that, in a data step, I originally copied the lat/long field to new variables for naming sake:&lt;BR /&gt;latitude=x;&lt;BR /&gt;longitude=y;&lt;BR /&gt;Maybe that caused the issue?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Nov 2017 20:48:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416875#M67664</guid>
      <dc:creator>rprincey</dc:creator>
      <dc:date>2017-11-28T20:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc geocode issues</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416915#M67667</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8451"&gt;@rprincey&lt;/a&gt; wrote:&lt;BR /&gt;I unfortunately don't know. When I first put the data in map (tableau), it all showed up in Antartica.&lt;BR /&gt;Then I re-ran it and it worked.&lt;BR /&gt;The one thing that may have caused the problem was that, in a data step, I originally copied the lat/long field to new variables for naming sake:&lt;BR /&gt;latitude=x;&lt;BR /&gt;longitude=y;&lt;BR /&gt;Maybe that caused the issue?&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Very likely, longitude is the line that runs north/south on a map and the value is used for the direction east/west: i.e. X coordinate in mapping by default. So you transposed the values from east/west to north south. You should have had a largish number of points not map at all as the values from -90 to -180 wouldn't have a usable coordinate pair for mapping.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you look in the Sashelp.zipcode file you'll notice that the variable named X is labeled Longitude.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 23:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-geocode-issues/m-p/416915#M67667</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-28T23:47:03Z</dc:date>
    </item>
  </channel>
</rss>

