<?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: counting symbols in a string in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37829#M9666</link>
    <description>try function :   countc ();&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data _null_;&lt;BR /&gt;
freq=countc(' one, two , three ' , ',');&lt;BR /&gt;
put 'The  count number of '','' is ' freq;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
    <pubDate>Sat, 19 Jun 2010 09:40:00 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2010-06-19T09:40:00Z</dc:date>
    <item>
      <title>counting symbols in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37827#M9664</link>
      <description>how to count ", " in a string?&lt;BR /&gt;
&lt;BR /&gt;
for example:&lt;BR /&gt;
any function can return a number "2" when counting in the following string?&lt;BR /&gt;
&lt;BR /&gt;
 " one, two , three"= two commas. &lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot!</description>
      <pubDate>Fri, 18 Jun 2010 21:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37827#M9664</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2010-06-18T21:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: counting symbols in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37828#M9665</link>
      <description>have you tried the count() function?</description>
      <pubDate>Sat, 19 Jun 2010 08:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37828#M9665</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-06-19T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: counting symbols in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37829#M9666</link>
      <description>try function :   countc ();&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
data _null_;&lt;BR /&gt;
freq=countc(' one, two , three ' , ',');&lt;BR /&gt;
put 'The  count number of '','' is ' freq;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Sat, 19 Jun 2010 09:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37829#M9666</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2010-06-19T09:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: counting symbols in a string</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37830#M9667</link>
      <description>Thanks, it works!</description>
      <pubDate>Mon, 21 Jun 2010 14:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/counting-symbols-in-a-string/m-p/37830#M9667</guid>
      <dc:creator>Ken_oy</dc:creator>
      <dc:date>2010-06-21T14:01:10Z</dc:date>
    </item>
  </channel>
</rss>

