<?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: Proc Import - case sensitivity in filename in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574779#M162471</link>
    <description>Thanks Tom</description>
    <pubDate>Thu, 18 Jul 2019 20:23:30 GMT</pubDate>
    <dc:creator>aswinappus</dc:creator>
    <dc:date>2019-07-18T20:23:30Z</dc:date>
    <item>
      <title>Proc Import - case sensitivity in filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574757#M162461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any SAS options or an easy way to read a file in proc import filename without accounting the case sensitivity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg: I need to import a file using proc import&amp;nbsp; from a user who place it in a unix folder.. It is possible that user name it like myfile.xlsx / Myfile.xlsx / MyFile.xlsx etc.... I would need my code to handle it instead of giving an ERROR like "Physical file does not exist"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can always look for certain keywords in the file name and can pick it by writing detailed code, but wondering if there are any easy option that could just ignore the case of the filename?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574757#M162461</guid>
      <dc:creator>aswinappus</dc:creator>
      <dc:date>2019-07-18T19:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - case sensitivity in filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574768#M162467</link>
      <description>&lt;P&gt;No.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could ask the operating system to give you list of all of the files and then pick the one you think is the one you want.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574768#M162467</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-07-18T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - case sensitivity in filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574771#M162469</link>
      <description>&lt;P&gt;Options no but code should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would be tempted to pipe an LS command to populate a data set, create an uppercase value in a different variable and then match my expected value as uppercase to select the mixed case and place that into a macro variable. Either use options to get the path as part of the filename OR use a concatenation function to prefix the name with the proper string.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;filename listing pipe 'ls' &amp;lt;options&amp;gt;;

data  names;
   infile listing;
   length name $ 200 ;
   input name;
   if upcase(name) = "The path and file I expect" 
      then call symputx('sourcefile',name);
run;

proc import datafile="&amp;amp;sourcefile."
   out=lib.datasetname
   dbms=xlsx;
   &amp;lt;other options&amp;gt;
   ;
run;&lt;/PRE&gt;
&lt;P&gt;Been way to long since I did any work on a Unix (or other system) do know what the full syntax option might be for the listing command.&lt;/P&gt;
&lt;P&gt;Do not use any option that would list the names as all upper or lower case.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574771#M162469</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-18T20:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - case sensitivity in filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574778#M162470</link>
      <description>Thanks.. I'm currently using a similar approach, but this logic looks much simpler than what I have.. THANK YOU!&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Jul 2019 20:23:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574778#M162470</guid>
      <dc:creator>aswinappus</dc:creator>
      <dc:date>2019-07-18T20:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Import - case sensitivity in filename</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574779#M162471</link>
      <description>Thanks Tom</description>
      <pubDate>Thu, 18 Jul 2019 20:23:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Import-case-sensitivity-in-filename/m-p/574779#M162471</guid>
      <dc:creator>aswinappus</dc:creator>
      <dc:date>2019-07-18T20:23:30Z</dc:date>
    </item>
  </channel>
</rss>

