<?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- Cleaning city names using M_CITY in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250749#M56614</link>
    <description>&lt;P&gt;It has been a while since I did my last geocoding, I can only speak from my impression. You may need to download the most current TIGER file from census site to do a thorough geocoding. The dataset in sashelp is just for demo, I believe. It is neither complete nor current. Please reference this paper for details:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/332-2010.pdf" target="_self"&gt;http://support.sas.com/resources/papers/proceedings10/332-2010.pdf&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 01:26:29 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2016-02-18T01:26:29Z</dc:date>
    <item>
      <title>Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250704#M56611</link>
      <description>&lt;P&gt;I am trying to clean address data by correcting different spellings of the same city (Ex. St. Lous, Saint Louis...). I am able to use PROC GEOCODE to turn&amp;nbsp;street addresses into Y X cordinates. SAS suggests alternative addresses and states (M_ADDR and M_STATE). However the M_CITY variable field is blank for every observation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted the M_CITY variable because I thought it could help standardize city spellings. According to the SAS documentation,&amp;nbsp;&lt;/P&gt;&lt;DIV class="xis-term"&gt;M_CITY&amp;nbsp;contains the city name for a city and state match. The M_CITY value is the match value from the lookup data.&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me figure out why the M_CITY variable is blank?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am using the&amp;nbsp;SASHELP.USM dataset to look up street locations.&lt;/P&gt;&lt;P&gt;I am also open to other solutions to standadize city spellings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Code:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC GEOCODE
METHOD=STREET
DATA=WORK.ADDRESS_TEST1
OUT=WORK.GEO_ADDR_TEST2
lookupSTREET=SASHELP.USM;
RUN; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;TB&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 20:44:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250704#M56611</guid>
      <dc:creator>TB2</dc:creator>
      <dc:date>2016-02-17T20:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250749#M56614</link>
      <description>&lt;P&gt;It has been a while since I did my last geocoding, I can only speak from my impression. You may need to download the most current TIGER file from census site to do a thorough geocoding. The dataset in sashelp is just for demo, I believe. It is neither complete nor current. Please reference this paper for details:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings10/332-2010.pdf" target="_self"&gt;http://support.sas.com/resources/papers/proceedings10/332-2010.pdf&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 01:26:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250749#M56614</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-18T01:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250818#M56625</link>
      <description>&lt;P&gt;I am using the 2014 TIGER file. I noticed they have 2015 available, but thought it might not be necessary for my purposes. I am comfortable assuming that the addresses in my file were around&amp;nbsp;in 2014. Unless you can think of a new featurture in the 2015 TIGER data set that would help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your paper suggestion.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:19:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250818#M56625</guid>
      <dc:creator>TB2</dc:creator>
      <dc:date>2016-02-18T14:19:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250832#M56627</link>
      <description>&lt;P&gt;Understood what you are saying, but just to confirm, otherwise I will be utterly&amp;nbsp;lost, is this the actual code you were running?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;lookupSTREET&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;SASHELP&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;USM&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;As this is refering to sashelp library, which by the way, can NOT be reassigned. So are you saying in your real code, you were using 2014 Tiger in a different library, meaning you real code will be using a different non-reserved libname to address that.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token punctuation"&gt;Other than that, the only thing I know is that if the city level match is failed , then the city will be left blank. &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 14:57:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250832#M56627</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-18T14:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250843#M56631</link>
      <description>&lt;P&gt;&amp;nbsp;I did not download the TIGER dataset&amp;nbsp;myself. However when I open the SASHELP.USM dataset, it says that the source is Tiger 2014.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12288iC10C1EAA3B32621C/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Tiger2014.JPG" title="Tiger2014.JPG" /&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250843#M56631</guid>
      <dc:creator>TB2</dc:creator>
      <dc:date>2016-02-18T15:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250854#M56632</link>
      <description>&lt;P&gt;Hmm. Something isn't quite right about your USM file. This is mine, mine is 2014 Tiger as well. Yours doesn't even have city columns.&lt;IMG title="usm.PNG" alt="usm.PNG" src="https://communities.sas.com/t5/image/serverpage/image-id/1928iE2CAB70F994DBCD0/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;So you may want to check your lookup table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am aware of you have a big data to tackle, so this is just FYI in case you need it in the future. The following link provides the most updated golden standard geocoding for financial industry:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://geomap.ffiec.gov/FFIECGeocMap/GeocodeMap1.aspx" target="_blank"&gt;https://geomap.ffiec.gov/FFIECGeocMap/GeocodeMap1.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They don't provide API for automated search and web scrapping, but google will help.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250854#M56632</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2016-02-18T15:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250857#M56633</link>
      <description>&lt;P&gt;You may want to look at &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; for additional datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I believe the SASHELP.USM is a subset of data from TIGER.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/250857#M56633</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-02-18T15:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251018#M56660</link>
      <description>&lt;P&gt;FYI, SAS's Data Quality aka SAS Dataflux, with an address matching plug-in like Loqate provides an automated approach to your problem. It does geo-coding, address standardisation and cleansing, zip codes and then some. Its really an enterprise solution for fixing data quality issues but thought you would like to know about it.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 04:29:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251018#M56660</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-02-19T04:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251229#M56677</link>
      <description>&lt;P&gt;There was a defect in Proc GECOCODE that M_CITY didn't display in the output data set. &amp;nbsp;I know it works in 9.4M2. &amp;nbsp;I do not know how far back the problem went.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:30:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251229#M56677</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-02-19T18:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251232#M56678</link>
      <description>&lt;P&gt;I am using SAS Enterprise Guide Version 5.1 (5.100.0.13304&amp;nbsp;Hot fix 17)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you think this issue effects my version of SAS?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:39:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251232#M56678</guid>
      <dc:creator>TB2</dc:creator>
      <dc:date>2016-02-19T18:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251238#M56679</link>
      <description>&lt;P&gt;With EG 5.1 you are probably using SAS 9.3. &amp;nbsp;You can check the SAS version by submitting:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put &amp;amp;SYSVLONG;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or by right-clicking on the server in your Server list, select Properties, then look at the Software tab in the window.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1965iC1FE9FEA7D9F1D9A/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="sasversion.png" title="sasversion.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:52:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251238#M56679</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-02-19T18:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251242#M56680</link>
      <description>&lt;P&gt;Oh, and it looks like there was a related defect (if not the one&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13950"&gt;@Darrell_sas﻿&lt;/a&gt;&amp;nbsp;mentions) fixed at 9.4 Maint 1.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251242#M56680</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2016-02-19T18:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251247#M56681</link>
      <description>&lt;P&gt;I am using SAS 9.3. So I guess it is possible that the&amp;nbsp;defect is the reason that the M_CITY field is empty.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12291i486BC230B31BA564/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS version.JPG" title="SAS version.JPG" /&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251247#M56681</guid>
      <dc:creator>TB2</dc:creator>
      <dc:date>2016-02-19T19:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Geocode- Cleaning city names using M_CITY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251253#M56682</link>
      <description>&lt;P&gt;I did a little more research on M_CITY. &amp;nbsp;It was only returned if we did a city match (not a street-level match or zip match, etc). &amp;nbsp;It was suggested that having that information for a street match would be useful so we added the M_CITY information. &amp;nbsp;That appears to be added in 9.4m1. &amp;nbsp;So, 9.3 definitely does not have M_CITY.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Geocode-Cleaning-city-names-using-M-CITY/m-p/251253#M56682</guid>
      <dc:creator>Darrell_sas</dc:creator>
      <dc:date>2016-02-19T19:29:10Z</dc:date>
    </item>
  </channel>
</rss>

