<?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 count upcase and lowcase in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715972#M221200</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data newlib.c;
x='ABCDefghiJKLMNopqrs';
run;

data newlib.cw;
set newlib.c;
if count(x,lowcase(x)) then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 02 Feb 2021 08:34:16 GMT</pubDate>
    <dc:creator>BrahmanandaRao</dc:creator>
    <dc:date>2021-02-02T08:34:16Z</dc:date>
    <item>
      <title>count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715972#M221200</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data newlib.c;
x='ABCDefghiJKLMNopqrs';
run;

data newlib.cw;
set newlib.c;
if count(x,lowcase(x)) then output;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:34:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715972#M221200</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-02-02T08:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715976#M221202</link>
      <description>&lt;P&gt;What is the question here?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715976#M221202</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-02-02T08:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715978#M221203</link>
      <description>&lt;P&gt;Next code distinguish between upcase and lowcase letters.&lt;/P&gt;
&lt;P&gt;Use the same method for counting:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
&amp;nbsp; &amp;nbsp;x='ABCDefghiJKLMNopqrs';
&amp;nbsp; &amp;nbsp;do i =1 to length(x);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char = substr(x,i,1);
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if char = upcase(char) then put CHAR ' is an upcase letter';
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;else put CHAR ' is a lowcase letter';
&amp;nbsp; end;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715978#M221203</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2021-02-02T08:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715979#M221204</link>
      <description>&lt;P&gt;Do you need something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
x='ABC123ef';
    /* k..() functions work with utf-8 */
l = klength(kcompress(x,,"kl"));
u = klength(kcompress(x,,"ku"));
put _all_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 08:56:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715979#M221204</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-02-02T08:56:36Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715999#M221213</link>
      <description>I want count of lowcase and upcase in a string</description>
      <pubDate>Tue, 02 Feb 2021 10:24:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/715999#M221213</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2021-02-02T10:24:24Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/716003#M221214</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;I want count of lowcase and upcase in a string&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Well, have you tried the suggested solution? If you have requirements for the output, show them. We can't read your mind &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 10:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/716003#M221214</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-02T10:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: count upcase and lowcase</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/716004#M221215</link>
      <description>&lt;P&gt;In my code the variable L contains count of lower case letters, and the variable U contains count of upper case letters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 02 Feb 2021 10:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-upcase-and-lowcase/m-p/716004#M221215</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2021-02-02T10:33:39Z</dc:date>
    </item>
  </channel>
</rss>

