<?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: I am trying to import csv file with date in file name. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790024#M252911</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  dt=lowcase('01JAN2022');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dt=%lowcase(01JAN2022);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 13 Jan 2022 16:36:34 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2022-01-13T16:36:34Z</dc:date>
    <item>
      <title>I am trying to import csv file with date in file name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790015#M252905</link>
      <description>&lt;P&gt;for example, the file name is abcd_01jan2022.csv&lt;/P&gt;&lt;P&gt;using DATE9. function, I am able to get 01JAN2022 but in my case scenario, month should be in lowcase.&lt;/P&gt;&lt;P&gt;Can any one please help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:22:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790015#M252905</guid>
      <dc:creator>kotapatipavan95</dc:creator>
      <dc:date>2022-01-13T16:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to import csv file with date in file name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790021#M252908</link>
      <description>&lt;P&gt;Use the lowcase/lower functions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are you getting the date? How are you creating the file name?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/392856"&gt;@kotapatipavan95&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;for example, the file name is abcd_01jan2022.csv&lt;/P&gt;
&lt;P&gt;using DATE9. function, I am able to get 01JAN2022 but in my case scenario, month should be in lowcase.&lt;/P&gt;
&lt;P&gt;Can any one please help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:30:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790021#M252908</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-01-13T16:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to import csv file with date in file name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790023#M252910</link>
      <description>&lt;P&gt;I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let date = %sysfunc(today(), DATE9.);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data file_name;&lt;/P&gt;&lt;P&gt;infile "/path/abcd_&amp;amp;date..csv;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run this, the program is trying to import file name abcd_13JAN2022.csv&lt;/P&gt;&lt;P&gt;but the file naming(file I am trying to import) has lower case for month i.e. abcd_13jan2022.csv&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:34:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790023#M252910</guid>
      <dc:creator>kotapatipavan95</dc:creator>
      <dc:date>2022-01-13T16:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to import csv file with date in file name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790024#M252911</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  dt=lowcase('01JAN2022');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let dt=%lowcase(01JAN2022);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 16:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790024#M252911</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2022-01-13T16:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: I am trying to import csv file with date in file name.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790034#M252916</link>
      <description>&lt;P&gt;Either wrap %sysfunc in %lowcase, or wrap &amp;amp;date. in the infile statement in %lowcase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let date = %lowcase(%sysfunc(today(), DATE9.));

data file_name;
  infile "/path/abcd_%lowcase(&amp;amp;date.).csv;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Jan 2022 17:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/I-am-trying-to-import-csv-file-with-date-in-file-name/m-p/790034#M252916</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-01-13T17:07:19Z</dc:date>
    </item>
  </channel>
</rss>

