<?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 count the frequency of a letter in a string in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110357#M30631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count how many specified letter in a string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let have=123#45#678#9; we need to count how many '#' in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case there are total three '#' in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a="123#45#678#9";&lt;/P&gt;&lt;P&gt;b=somefunction(a,'#');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2012 14:26:48 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-07-18T14:26:48Z</dc:date>
    <item>
      <title>how to count the frequency of a letter in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110357#M30631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to count how many specified letter in a string,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;such as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let have=123#45#678#9; we need to count how many '#' in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this case there are total three '#' in the string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a="123#45#678#9";&lt;/P&gt;&lt;P&gt;b=somefunction(a,'#');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 14:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110357#M30631</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-18T14:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to count the frequency of a letter in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110358#M30632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about countc()?&lt;/P&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a="123#45#678#9";&lt;/P&gt;&lt;P&gt;b=countc(a,'#');&lt;/P&gt;&lt;P&gt;put b=;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 14:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110358#M30632</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-07-18T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to count the frequency of a letter in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110359#M30633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data one;&lt;/P&gt;&lt;P&gt;a="123#45#678#9";&lt;/P&gt;&lt;P&gt;b=count(a,'#');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2012 14:31:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-count-the-frequency-of-a-letter-in-a-string/m-p/110359#M30633</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-18T14:31:23Z</dc:date>
    </item>
  </channel>
</rss>

