<?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: How to standardize U.S. cities variable in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96484#M257759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the zip code variable is not available.&amp;nbsp; But I also have state variable I can use to triangulate.&amp;nbsp; Could I ask in this case, what would be a better solution?&amp;nbsp; Thank you, guys -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Jun 2013 21:11:46 GMT</pubDate>
    <dc:creator>sasjoker</dc:creator>
    <dc:date>2013-06-05T21:11:46Z</dc:date>
    <item>
      <title>How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96480#M257755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of city names in the U.S.&amp;nbsp; They are typed in by end-users.&amp;nbsp; A lot of them contains minor typos.&amp;nbsp; See below&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Is there an internal list of U.S. city &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;names in the SAS that I can compare my city name list to the correct list (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;maybe by using COMPLEV???) in order to minimize distance and then &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;standardize city names.&amp;nbsp; Alternatively, is there a function that transform the first column into code or standard city names so that I can do proc geocode on them?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to manually correct these, almost killed myself...&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot, guys!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="330"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="228"&gt;Chicago,&lt;/TD&gt;&lt;TD width="102"&gt;Chicago&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Chicao&lt;/TD&gt;&lt;TD&gt;Chicago&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Chichago&lt;/TD&gt;&lt;TD&gt;Chicago&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cincinatti&lt;/TD&gt;&lt;TD&gt;CINCINNATI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cincinnati&lt;/TD&gt;&lt;TD&gt;CINCINNATI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cincinnatti&lt;/TD&gt;&lt;TD&gt;CINCINNATI&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;Cinncinati&lt;/TD&gt;&lt;TD&gt;CINCINNATI&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 18:06:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96480#M257755</guid>
      <dc:creator>sasjoker</dc:creator>
      <dc:date>2013-06-05T18:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96481#M257756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's the maps.uscity table that has City Names, and lat/long. &lt;/P&gt;&lt;P&gt;But city names aren't unique so you need to be careful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc freq data=maps.uscity noprint;&lt;/P&gt;&lt;P&gt;table city/out=city_names;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data=city_names; by descending count ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 18:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96481#M257756</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-06-05T18:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96482#M257757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another consideration:&amp;nbsp; Many city names are similar.&amp;nbsp; For example, if you see the misspelling "Parris", there are many legitimate city names that could match it:&amp;nbsp; Paris, Perris, Parrish.&amp;nbsp; Would you like a computer to make the decision for you?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One viable approach would be to take all the corrections that you so studiously made already and automate them.&amp;nbsp; Apply the same changes you made to the next batch of data.&amp;nbsp; Then see which spellings still don't match a legitimate city and augment your list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 19:35:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96482#M257757</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2013-06-05T19:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96483#M257758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There should be a ZIP code data set SASHelp.Zipcode that has city and state information including some "alternate" city names associated. If by any chance your data also contains zip codes the function ZIPCity may be of interest to you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 19:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96483#M257758</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-06-05T19:41:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96484#M257759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the zip code variable is not available.&amp;nbsp; But I also have state variable I can use to triangulate.&amp;nbsp; Could I ask in this case, what would be a better solution?&amp;nbsp; Thank you, guys -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 21:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96484#M257759</guid>
      <dc:creator>sasjoker</dc:creator>
      <dc:date>2013-06-05T21:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96485#M257760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My general approach would be to find the matches by state on one or more of the city variables in the ZIP code data set first. For the ones that don't match I would start by examining the difference between the (distinct) cities in the data with ZIP code set looking for the minimum COMPGED or COMPLEV and/ or maximimum COMPARE function results.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 22:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96485#M257760</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-06-05T22:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96486#M257761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your help -&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:54:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96486#M257761</guid>
      <dc:creator>sasjoker</dc:creator>
      <dc:date>2013-06-06T18:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96487#M257762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is a good method also, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jun 2013 18:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/96487#M257762</guid>
      <dc:creator>sasjoker</dc:creator>
      <dc:date>2013-06-06T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/754051#M257763</link>
      <description>How can i have first name and last name in signle column without using functions. By using length and colon. can any1 help me with this please</description>
      <pubDate>Wed, 14 Jul 2021 12:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/754051#M257763</guid>
      <dc:creator>addicted4frinds</dc:creator>
      <dc:date>2021-07-14T12:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to standardize U.S. cities variable in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/754058#M257764</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Start your own thread, and give it a meaningful subject line; adding a post to a thread that is 8(!) years old won't get you many responses&lt;/LI&gt;
&lt;LI&gt;Provide example data, so we know what you are talking about. Usable example data means posting a DATA step with DATALINES (or a simple assignment if one observation is sufficient)&lt;/LI&gt;
&lt;LI&gt;Show what you expect to get out of that&lt;/LI&gt;
&lt;LI&gt;Posting unreasonable conditions makes no sense; if a certain function is ideal for your task, use it&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 14 Jul 2021 12:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-standardize-U-S-cities-variable-in-SAS/m-p/754058#M257764</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-14T12:58:45Z</dc:date>
    </item>
  </channel>
</rss>

