<?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: Correct the spelling if middle of the string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615221#M179945</link>
    <description>&lt;P&gt;How would a programmer in your situation know what are incorrect spellings that need to be corrected?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jan 2020 22:36:38 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-05T22:36:38Z</dc:date>
    <item>
      <title>Correct the spelling if middle of the string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615188#M179935</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
x='Ameriica';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;correct the spelling its is one data if we have&amp;nbsp; huge file&amp;nbsp; in that miss spell words how to solve it&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 13:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615188#M179935</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-01-05T13:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Correct the spelling if middle of the string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615194#M179936</link>
      <description>&lt;P&gt;I personally believe that SAS Data Quality tools (DataFlux) should be used in such cases, because it's specially designed for this kind of purpose and already has QKB (Quality Knowledge Base) built-in to correct the typo mistakes like "Ameriica",&lt;BR /&gt;&lt;BR /&gt;About your question, if you don't have SAS Data Quality tools, you've to make your word list for this table and have to pass it through if condition, for an example :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x $8.;
infile datalines;
datalines;
Ameriica
Ceneda
;;;;
run;

data want;
set have;
if x in ("Ameriica", "Americca", "Amarica") then x="America";
if x in ("Ceneda", "Caneda" ) then x="Canada";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can manually identify the wrong spellings from the data by using Proc Freq (by checking unique values of it) or any other reporting procedure and add those wrong spellings in the list like above, but it might take a long if you've so many columns and data to correct it.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 15:11:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615194#M179936</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2020-01-05T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Correct the spelling if middle of the string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615219#M179944</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Spell checking isn't simple business. Instead of restating what has already been eloquently said elsewhere, I'd suggest that you take a look at this thread:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/Speling-Korrecter/td-p/33164" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/Speling-Korrecter/td-p/33164&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kind regards&lt;/P&gt;
&lt;P&gt;Paul D.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 22:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615219#M179944</guid>
      <dc:creator>hashman</dc:creator>
      <dc:date>2020-01-05T22:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Correct the spelling if middle of the string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615221#M179945</link>
      <description>&lt;P&gt;How would a programmer in your situation know what are incorrect spellings that need to be corrected?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jan 2020 22:36:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Correct-the-spelling-if-middle-of-the-string/m-p/615221#M179945</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-05T22:36:38Z</dc:date>
    </item>
  </channel>
</rss>

