<?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: Cleaning data to removed non-letter entries. in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477550#M71309</link>
    <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;. Also, I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;s solution is the way to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 15:30:57 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2018-07-12T15:30:57Z</dc:date>
    <item>
      <title>Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477532#M71302</link>
      <description>&lt;P&gt;I have a dataset that contains items such as "Oklahoma" "0klahoma" "Okla#oma" "555-444-3333" and I only want to keep entries that contain purely letters - dropping all entries that contain anything other than a letter. How do you do it?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:08:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477532#M71302</guid>
      <dc:creator>rob_roche</dc:creator>
      <dc:date>2018-07-12T15:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477539#M71303</link>
      <description>&lt;P&gt;NOTALPHA() function.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p15hz07s8zvsywn1q59607pduunb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p15hz07s8zvsywn1q59607pduunb.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if notalpha(your_variable_name) then delete;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216787"&gt;@rob_roche&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a dataset that contains items such as "Oklahoma" "0klahoma" "Okla#oma" "555-444-3333" and I only want to keep entries that contain purely letters - dropping all entries that contain anything other than a letter. How do you do it?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:19:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477539#M71303</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-12T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477542#M71304</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
length string $20;
input string $;
datalines;
Oklahoma
0klahoma
Okla#oma
555-444-3333
;

data want;
   set have;
   if anypunct(string)=0 &amp;amp; anydigit(string)=0;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477542#M71304</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-12T15:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477545#M71305</link>
      <description>&lt;P&gt;This seems to have been the most effective - thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477545#M71305</guid>
      <dc:creator>rob_roche</dc:creator>
      <dc:date>2018-07-12T15:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477547#M71307</link>
      <description>&lt;P&gt;It would be safer if you would specify some of the details.&amp;nbsp; Since the objective is to delete observations, it's a good idea to spell out the rules before deletion takes place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is a comma always invalid, or could this appear:&amp;nbsp; Washington, DC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is a hyphen always invalid, or could this appear:&amp;nbsp; Raleigh-Durham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would a zip code be valid?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have a small list of valid values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does capitalization matter?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477547#M71307</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-12T15:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477550#M71309</link>
      <description>&lt;P&gt;I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;. Also, I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;s solution is the way to go &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477550#M71309</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-07-12T15:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477559#M71311</link>
      <description>These are great questions - what I am trying to do is create a list of US city names, this will become my reference list. I'm trying to bump international names out of a master list of 55 million records. I'm trying to create a table that has a list of pairs of city, county, zip. FORTUNTELY, I found a .txt file online containing this information. However, I was frustrated I couldn't figure out how to clean my data myself - hence the question.</description>
      <pubDate>Thu, 12 Jul 2018 15:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477559#M71311</guid>
      <dc:creator>rob_roche</dc:creator>
      <dc:date>2018-07-12T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477561#M71313</link>
      <description>&lt;P&gt;sashelp and sasmaps libraries have several of these datasets readily available for you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216787"&gt;@rob_roche&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;These are great questions - what I am trying to do is create a list of US city names, this will become my reference list. I'm trying to bump international names out of a master list of 55 million records. I'm trying to create a table that has a list of pairs of city, county, zip. &lt;STRONG&gt;FORTUNTELY, I found a .txt file online containing this information.&lt;/STRONG&gt; However, I was frustrated I couldn't figure out how to clean my data myself - hence the question.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:37:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477561#M71313</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-12T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477566#M71315</link>
      <description>&lt;P&gt;That's also great to know - this is week 3 of using SAS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the guidance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477566#M71315</guid>
      <dc:creator>rob_roche</dc:creator>
      <dc:date>2018-07-12T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cleaning data to removed non-letter entries.</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477571#M71318</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/216787"&gt;@rob_roche&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;These are great questions - what I am trying to do is create a list of US city names, this will become my reference list. I'm trying to bump international names out of a master list of 55 million records. I'm trying to create a table that has a list of pairs of city, county, zip. FORTUNTELY, I found a .txt file online containing this information. However, I was frustrated I couldn't figure out how to clean my data myself - hence the question.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You may want to look and see if you have a data set SASHELP.Zipcode. It should be part of your install. It has US city names (and some alternate names) state codes, zip codes, county name and&amp;nbsp;FIPS number&amp;nbsp;area codes and other information.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 15:50:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Cleaning-data-to-removed-non-letter-entries/m-p/477571#M71318</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-07-12T15:50:29Z</dc:date>
    </item>
  </channel>
</rss>

