<?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 How to clean false values of a variable? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592172#M15324</link>
    <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of variables and among them name and surname: NACHNAME and VORNAME. These are character variables length $35.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of their values are not correct: for instance, you can find :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cccc&lt;/LI&gt;&lt;LI&gt;ccc&lt;/LI&gt;&lt;LI&gt;?0???&lt;/LI&gt;&lt;LI&gt;!-§4$&lt;/LI&gt;&lt;LI&gt;Test&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a method to clean them (delete the lines, where NACHNAME&amp;nbsp;or VORNAME have&amp;nbsp;this kind of irrelevant value)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 14:27:17 GMT</pubDate>
    <dc:creator>PierreYvesILY</dc:creator>
    <dc:date>2019-09-27T14:27:17Z</dc:date>
    <item>
      <title>How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592172#M15324</link>
      <description>&lt;P&gt;Dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a set of variables and among them name and surname: NACHNAME and VORNAME. These are character variables length $35.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of their values are not correct: for instance, you can find :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;cccc&lt;/LI&gt;&lt;LI&gt;ccc&lt;/LI&gt;&lt;LI&gt;?0???&lt;/LI&gt;&lt;LI&gt;!-§4$&lt;/LI&gt;&lt;LI&gt;Test&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a method to clean them (delete the lines, where NACHNAME&amp;nbsp;or VORNAME have&amp;nbsp;this kind of irrelevant value)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx,&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;PY&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:27:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592172#M15324</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2019-09-27T14:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592175#M15325</link>
      <description>&lt;P&gt;What are the rules that determine if a value is not acceptable?&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 14:28:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592175#M15325</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-27T14:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592180#M15326</link>
      <description>&lt;P&gt;We are in Germany, so (same rules NACHNAME and VORNAME):&lt;/P&gt;&lt;P&gt;- all names must be written with Latin letters, of any european language (not possible to select this I guess)&lt;/P&gt;&lt;P&gt;- in a name, you can have as many words as you need: 'Du Taxi du Pouet de la Valse Folle' is correct&lt;/P&gt;&lt;P&gt;- the sign - between 2 words is accepted, as well as a space, or both together (people also type errors), and also '&lt;/P&gt;&lt;P&gt;- accents on voyels are OK : ` ´ ^ ~ ö ä ü&lt;/P&gt;&lt;P&gt;- the _ will be tolerated - the following signs determine in all cases a false name: ? , = ; ( ) / &amp;amp; % $ § ! " * + # @ &amp;lt; &amp;gt; &amp;gt; | €&lt;/P&gt;&lt;P&gt;- such test cases names as : cccc, ccc, Test, test... will be eliminated (I noticed some)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My purpose here is to be helped in the method to achieve this goal, I would like to progress and understand how I can do.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592180#M15326</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2019-09-27T15:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592204#M15329</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;false_name=findc(name,'?,=;()/&amp;amp;%$§!"*+#@&amp;lt;&amp;gt;&amp;gt;|€')&amp;gt;0;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As far as the other types of false names, you would need to create general rules that could be programmed, such as if the same letter appears 4 times consecutively, that is a false name. Naturally, there are many such general rules that would have to be defined and then programmed.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592204#M15329</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-09-27T15:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592255#M15335</link>
      <description>&lt;P&gt;Adding a rule rejecting repeated characters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
set have;
invalid = 
	findc(name,'?,=;()/&amp;amp;%$§!"*+#@&amp;lt;&amp;gt;&amp;gt;|€') &amp;gt; 0
		or
	prxmatch("/(\S)\1{2,}/", name);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Sep 2019 17:38:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/592255#M15335</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-09-27T17:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean false values of a variable?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/595302#M15772</link>
      <description>I implemented this solution with success.&lt;BR /&gt;Thank you.</description>
      <pubDate>Thu, 10 Oct 2019 09:59:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-false-values-of-a-variable/m-p/595302#M15772</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2019-10-10T09:59:18Z</dc:date>
    </item>
  </channel>
</rss>

