<?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 SAS file name saved in Lib in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/766825#M243059</link>
    <description>&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am saving a file in a library and I want to datestamp it with todays date for e.g.&lt;/P&gt;&lt;P&gt;MyLib.Testfile_280921&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do I do that so that the date can be passed using todays date variable?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 12:08:19 GMT</pubDate>
    <dc:creator>Citrine10</dc:creator>
    <dc:date>2021-09-09T12:08:19Z</dc:date>
    <item>
      <title>SAS file name saved in Lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/766825#M243059</link>
      <description>&lt;P&gt;hi there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am saving a file in a library and I want to datestamp it with todays date for e.g.&lt;/P&gt;&lt;P&gt;MyLib.Testfile_280921&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how do I do that so that the date can be passed using todays date variable?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 12:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/766825#M243059</guid>
      <dc:creator>Citrine10</dc:creator>
      <dc:date>2021-09-09T12:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS file name saved in Lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/766838#M243067</link>
      <description>&lt;P&gt;Let me point out that files named like&amp;nbsp;&lt;SPAN&gt;MyLib.Testfile_280921 will not sort in any meaningful way, and if you change to YYMMDD, then the files will sort in chronological order.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So, you can use&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data mylib.testifle_%sysfunc(today(),yymmddn8.);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Sep 2021 12:54:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/766838#M243067</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-09-09T12:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS file name saved in Lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/767002#M243100</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;is totally right: year first or nothing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 07:01:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/767002#M243100</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-10T07:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS file name saved in Lib</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/767021#M243109</link>
      <description>&lt;P&gt;What&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;said: YMD order, nothing else. And use 4-digit years, so 19991231 comes before 20000101.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 09:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-file-name-saved-in-Lib/m-p/767021#M243109</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-09-10T09:30:07Z</dc:date>
    </item>
  </channel>
</rss>

