<?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: difference between i and u modifiers? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894441#M353319</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length x $12;
    x='bca1-abcABC2';

    countc_x_abc_i=compress(x,'a','i');
    countc_x_abc_u=compress(x,'a','u');
run;

proc print data=test;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 15 Sep 2023 08:51:38 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-09-15T08:51:38Z</dc:date>
    <item>
      <title>difference between i and u modifiers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894439#M353317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you think of any case where the i modifier would give a different result from the u modifier?&lt;/P&gt;
&lt;P&gt;- i ignores case&lt;/P&gt;
&lt;P&gt;- u adds uppercase letters to the list of characters&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just an example with countc, but it could be with any function allowing these modifiers.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length x $12;
    x='bca1-abcABC2';

    countc_x_abc_i=countc(x,'abc','i');
    countc_x_abc_u=countc(x,'abc','u');
run;

proc print data=test;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2023 08:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894439#M353317</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2023-09-15T08:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: difference between i and u modifiers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894441#M353319</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    length x $12;
    x='bca1-abcABC2';

    countc_x_abc_i=compress(x,'a','i');
    countc_x_abc_u=compress(x,'a','u');
run;

proc print data=test;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2023 08:51:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894441#M353319</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-09-15T08:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: difference between i and u modifiers?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894442#M353320</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184742"&gt;@xxformat_com&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;x='bca1-abcAB&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;D&lt;/STRONG&gt;&lt;/FONT&gt;2';&lt;/PRE&gt;
&lt;P&gt;Then your COUNTC calls would yield 8 vs. 9 because the second counts the "D" (&lt;EM&gt;all&lt;/EM&gt; uppercase letters were added to the initial list consisting of "a", "b" and "c"), whereas the first does not (only&amp;nbsp;"a", "b", "c",&amp;nbsp;"A", "B" and "C").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example 2:&lt;/P&gt;
&lt;P&gt;Leave &lt;FONT face="courier new,courier"&gt;x&lt;/FONT&gt; unchanged, but change the second argument of the COUNTC calls to &lt;FONT face="courier new,courier"&gt;'ab&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;d&lt;/STRONG&gt;&lt;/FONT&gt;'&lt;/FONT&gt;. Then you get 6 vs. 7 for similar reasons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 08:53:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/difference-between-i-and-u-modifiers/m-p/894442#M353320</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2023-09-15T08:53:32Z</dc:date>
    </item>
  </channel>
</rss>

