<?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 find Repeate charachters in a string in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622646#M183174</link>
    <description>&lt;P&gt;That does not answer our questions.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WHAT DO YOU WANT TO DO WHEN YOU FIND A REPEAT?&lt;/STRONG&gt;&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/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Draycut&lt;/P&gt;
&lt;P&gt;Its is interview question&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Feb 2020 10:16:27 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2020-02-06T10:16:27Z</dc:date>
    <item>
      <title>How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622638#M183169</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
x='aabbeehvvkellb';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How to find repeated characters in a string&amp;nbsp;&lt;/P&gt;&lt;P&gt;without use perl reg expression&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 09:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622638#M183169</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-02-06T09:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622639#M183170</link>
      <description>&lt;P&gt;What do you want to do when you find a repeat? Remove the character, or just flag the observation?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 09:53:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622639#M183170</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-06T09:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622640#M183171</link>
      <description>&lt;P&gt;What do you want to do with repeated characters?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 09:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622640#M183171</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-02-06T09:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622643#M183173</link>
      <description>&lt;P&gt;Hi Draycut&lt;/P&gt;&lt;P&gt;Its is interview question&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 10:09:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622643#M183173</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2020-02-06T10:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622646#M183174</link>
      <description>&lt;P&gt;That does not answer our questions.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;WHAT DO YOU WANT TO DO WHEN YOU FIND A REPEAT?&lt;/STRONG&gt;&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/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Draycut&lt;/P&gt;
&lt;P&gt;Its is interview question&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 10:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622646#M183174</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-02-06T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622664#M183179</link>
      <description>&lt;P&gt;You could use COUNTC() .&lt;/P&gt;
&lt;P&gt;n=countc(x,'a');&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if n &amp;gt;=2 then there are repeated 'A' .&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 11:21:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622664#M183179</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-06T11:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find Repeate charachters in a string</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622797#M183231</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Draycut&lt;/P&gt;
&lt;P&gt;Its is interview question&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;In which I case I would say that the response would involve finding out from the questioner the purpose and explicit definition of "repeated characters" would be.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider if the purpose is to identify an explicit repeated&amp;nbsp;series of characters such as "abc" in the string "123abc34abc".&lt;/P&gt;
&lt;P&gt;Or a specific single character like "a" that could occur in "aa123aaa456aa9a". What would the rule be for what to do? Count that 'a' occurred&amp;nbsp;8 totals&amp;nbsp;times &amp;nbsp;in the string, 7 times&amp;nbsp;as part of&amp;nbsp;sequences of 2 or more character&amp;nbsp;or that it appeared in 3 sequences of &amp;nbsp;2 or more. Or just set a flag that something repeated?&lt;/P&gt;
&lt;P&gt;Or are some or all of the repeated characters to be replaced? Moved into new/other variables ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Different approaches to "finding" might be indicated for different actions to be taken on a string. If I need to manipulate a string then I need to rules so I know information I need to keep (likely temporary but still)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:38:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-find-Repeate-charachters-in-a-string/m-p/622797#M183231</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-02-06T17:38:10Z</dc:date>
    </item>
  </channel>
</rss>

