<?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: Character functions in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718686#M222452</link>
    <description>Yes, it is for counting occurrences.</description>
    <pubDate>Thu, 11 Feb 2021 18:07:16 GMT</pubDate>
    <dc:creator>A_Kh</dc:creator>
    <dc:date>2021-02-11T18:07:16Z</dc:date>
    <item>
      <title>Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718475#M222363</link>
      <description>Hi,&lt;BR /&gt;I really need your help guys!&lt;BR /&gt;&lt;BR /&gt;there is a char variable with "broken bar "(|) delimited string.&lt;BR /&gt;I need to count how many (|) in the string.&lt;BR /&gt;&lt;BR /&gt;Please give your expertise!&lt;BR /&gt;&lt;BR /&gt;thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 11 Feb 2021 04:37:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718475#M222363</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2021-02-11T04:37:41Z</dc:date>
    </item>
    <item>
      <title>Re: Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718477#M222364</link>
      <description>&lt;P&gt;Do you need to count the occurences of "(|)" or "|"?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 04:49:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718477#M222364</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-02-11T04:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718481#M222367</link>
      <description>&lt;P&gt;Hope below helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*If delimted by |   ;
data _null_;
	a = 'a|b|c|';
	b = count(a,"|");
	put a= b=;
run;
/* LOG - a=a|b|c| b=3 */


*If delimited by (|)    ;
data _null_;
	a = 'a(|)b(|)c(|)';
	b = count(a,"(|)");
	put a= b=;
run;

/* LOG - a=a(|)b(|)c(|) b=3 */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2021 05:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718481#M222367</guid>
      <dc:creator>qoit</dc:creator>
      <dc:date>2021-02-11T05:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718484#M222368</link>
      <description>&lt;P&gt;SAS functions are documented at &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1q8bq2v0o11n6n1gpij335fqpph.htm"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lefunctionsref&amp;amp;docsetTarget=p1q8bq2v0o11n6n1gpij335fqpph.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to count a single char, &lt;FONT face="courier new,courier"&gt;countc&lt;/FONT&gt; should be your first-choice.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 06:16:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718484#M222368</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-11T06:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718686#M222452</link>
      <description>Yes, it is for counting occurrences.</description>
      <pubDate>Thu, 11 Feb 2021 18:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718686#M222452</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2021-02-11T18:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Character functions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718687#M222453</link>
      <description>thank you so much! it worked.</description>
      <pubDate>Thu, 11 Feb 2021 18:08:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Character-functions/m-p/718687#M222453</guid>
      <dc:creator>A_Kh</dc:creator>
      <dc:date>2021-02-11T18:08:45Z</dc:date>
    </item>
  </channel>
</rss>

