<?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: Is select statement in Proc datasets case sensitive ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786118#M250956</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can replicate what you describe under a SAS Windows version (9.04.01M7).&lt;/P&gt;
&lt;P&gt;All works well when I use an upper case name in the Select statement - but throws and error if using lower case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This feels more like an involuntary feature so may-be worth raising with SAS Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel source used:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1639553827137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66768i7632F4B5EB37238C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_2-1639553827137.png" alt="Patrick_2-1639553827137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work kill nolist;
run;quit;

libname PR xlsx 'c:\temp\pr.xlsx';

proc datasets lib=pr;
  copy 
    in=pr 
    out=work 
    memtype=data
    ;
  select pr:
    ;
  run;
quit;
libname PR clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1639553686918.png" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66766iAB9827556D50F0F8/image-dimensions/749x19?v=v2" width="749" height="19" role="button" title="Patrick_0-1639553686918.png" alt="Patrick_0-1639553686918.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work kill nolist;
run;quit;

libname PR xlsx 'c:\temp\pr.xlsx';

proc datasets lib=pr;
  copy 
    in=pr 
    out=work 
    memtype=data
    ;
  select PR:
    ;
  run;
quit;
libname PR clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1639553761987.png" style="width: 687px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66767i9042A9197DEFF560/image-dimensions/687x186?v=v2" width="687" height="186" role="button" title="Patrick_1-1639553761987.png" alt="Patrick_1-1639553761987.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 15 Dec 2021 11:36:39 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2021-12-15T11:36:39Z</dc:date>
    <item>
      <title>Is select statement in Proc datasets case sensitive ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786112#M250953</link>
      <description>&lt;P&gt;libname PR xlsx 'folders\pr.xlsx';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc datasets lib=pr ;&lt;BR /&gt;copy out=work memtype=data ;&lt;BR /&gt;select&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;pr:&lt;/STRONG&gt;&amp;nbsp; ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to work on sheets in xlsx file starting with PR (ex: PR1, PR2), imported using libname. And in select statement of Proc datasets step, it is showing error&lt;/P&gt;&lt;P&gt;"ERROR: The file PR.pr: (memtype=DATA) was not found, but appears on a SELECT statement." if I use small case (pr). The issue is not found when I use Upcase (PR). I knew that sas is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;case-insensitive&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;to dataset names. Is there any exception to this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:15:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786112#M250953</guid>
      <dc:creator>kleelasiva9</dc:creator>
      <dc:date>2021-12-15T07:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is select statement in Proc datasets case sensitive ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786113#M250954</link>
      <description>&lt;P&gt;The XLSX (and other such) engine does not work the same as the Base V9 engine, so it is very likely that it is case sensitive with regards to sheet or column names.&lt;/P&gt;
&lt;P&gt;If you have mixed upper/lower case in the sheet names, consider retrieving the memnames from dictionary.tables, where you search case insensitive (e.g. where upcase(memname) like 'PR%'), but store memname as is into a macro variable for later use in the DATASETS procedure.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 07:31:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786113#M250954</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-12-15T07:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is select statement in Proc datasets case sensitive ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786118#M250956</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can replicate what you describe under a SAS Windows version (9.04.01M7).&lt;/P&gt;
&lt;P&gt;All works well when I use an upper case name in the Select statement - but throws and error if using lower case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This feels more like an involuntary feature so may-be worth raising with SAS Tech Support.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Excel source used:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_2-1639553827137.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66768i7632F4B5EB37238C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_2-1639553827137.png" alt="Patrick_2-1639553827137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work kill nolist;
run;quit;

libname PR xlsx 'c:\temp\pr.xlsx';

proc datasets lib=pr;
  copy 
    in=pr 
    out=work 
    memtype=data
    ;
  select pr:
    ;
  run;
quit;
libname PR clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1639553686918.png" style="width: 749px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66766iAB9827556D50F0F8/image-dimensions/749x19?v=v2" width="749" height="19" role="button" title="Patrick_0-1639553686918.png" alt="Patrick_0-1639553686918.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc datasets lib=work kill nolist;
run;quit;

libname PR xlsx 'c:\temp\pr.xlsx';

proc datasets lib=pr;
  copy 
    in=pr 
    out=work 
    memtype=data
    ;
  select PR:
    ;
  run;
quit;
libname PR clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1639553761987.png" style="width: 687px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66767i9042A9197DEFF560/image-dimensions/687x186?v=v2" width="687" height="186" role="button" title="Patrick_1-1639553761987.png" alt="Patrick_1-1639553761987.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Dec 2021 11:36:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786118#M250956</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-12-15T11:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is select statement in Proc datasets case sensitive ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786125#M250957</link>
      <description>Thanks for support!</description>
      <pubDate>Wed, 15 Dec 2021 09:28:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786125#M250957</guid>
      <dc:creator>kleelasiva9</dc:creator>
      <dc:date>2021-12-15T09:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is select statement in Proc datasets case sensitive ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786126#M250958</link>
      <description>Thank you for knowledge support.</description>
      <pubDate>Wed, 15 Dec 2021 09:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-select-statement-in-Proc-datasets-case-sensitive/m-p/786126#M250958</guid>
      <dc:creator>kleelasiva9</dc:creator>
      <dc:date>2021-12-15T09:29:11Z</dc:date>
    </item>
  </channel>
</rss>

