<?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: Case insensitive in PROC MEANS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/320439#M70587</link>
    <description>&lt;P&gt;Thank you all for your advice and happy holidays &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 09:00:04 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2016-12-21T09:00:04Z</dc:date>
    <item>
      <title>Case insensitive in PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316991#M69349</link>
      <description>&lt;P&gt;Hi guys.. A very simple example below, where I create some test data such that Origin has both the character values Europe and EUROPE.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
   set sashelp.cars;
   if type = 'Sedan' and Origin = 'Europe' then Origin = 'EUROPE';
run;

proc means data = test;
   class Origin;
   var Weight;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run the proc means, can I make SAS interpret the class variable case insensitive?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 12:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316991#M69349</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-12-06T12:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive in PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316997#M69351</link>
      <description>&lt;P&gt;Well, in my opinion, this is a data modelling question rather than a coding one. &amp;nbsp;What you want to end up with is a dataset contianing consistent data. &amp;nbsp;Generally I like to see a dataset where textual elements contain a code as well, so in the one below you would have a step which codes all possible combinations of data element xyz to a consitent manner (be that a number or shortened code text.&lt;/P&gt;
&lt;P&gt;So, you would code your country column based on given rules such as country in (upcase()=EUROPE, EUR, EU) all equal 1 (or EU or something).&lt;/P&gt;
&lt;P&gt;As for your question, not sure how you would make a procedure know all the connotations of the data which only you know. &amp;nbsp;As above, you state Europe=EUROPE, but what about EU which is another common abbreviation. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2016 12:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316997#M69351</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-12-06T12:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive in PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316999#M69352</link>
      <description>&lt;P&gt;Yes. In general you can define a SAS format that collapses all of the possible choices into a single formatted value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your example, you don't need to create a custom format because the $UPCASE. format converts all values to uppercase:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = test;
format Origin $UPCASE.;
   class Origin;
   var Weight;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2016 12:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/316999#M69352</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-12-06T12:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Case insensitive in PROC MEANS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/320439#M70587</link>
      <description>&lt;P&gt;Thank you all for your advice and happy holidays &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 09:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-insensitive-in-PROC-MEANS/m-p/320439#M70587</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-12-21T09:00:04Z</dc:date>
    </item>
  </channel>
</rss>

