<?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: how to create a folder with todays date and time stamp in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492679#M129511</link>
    <description>&lt;P&gt;You need this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;rc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;dcreate&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"SASdata_&amp;amp;date._&amp;amp;hhmm"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and refer to it :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname sasdata "&amp;nbsp;S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\SASdata_&amp;amp;date._&amp;amp;hhmm&amp;nbsp; ";&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Sep 2018 14:28:40 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-09-05T14:28:40Z</dc:date>
    <item>
      <title>how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492626#M129484</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new in sas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a folder that displays something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SASdata_05SEP2018_1312&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the "1312" represents hours and minutes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I do this in sas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options dlcreatedir;
%let todayFolderName = SASdata_%sysfunc(today(),date9.);
libname sas_data "S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\&amp;amp;todayFolderName\";
libname sas_data clear;

&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492626#M129484</guid>
      <dc:creator>joaolopes</dc:creator>
      <dc:date>2018-09-05T12:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492631#M129487</link>
      <description>&lt;P&gt;And what happens when you run this code (post the log if it does not work as expected)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that&lt;/P&gt;
&lt;PRE&gt;S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs&lt;/PRE&gt;
&lt;P&gt;must already exist, and you need to have the necessary permissions there.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 12:39:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492631#M129487</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-05T12:39:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492633#M129489</link>
      <description>It runs and creates a folder with date but I don't know how to put time in the name of the folder</description>
      <pubDate>Wed, 05 Sep 2018 12:47:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492633#M129489</guid>
      <dc:creator>joaolopes</dc:creator>
      <dc:date>2018-09-05T12:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492645#M129495</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options dlcreatedir;&lt;BR /&gt;libname sas_data "S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\SASdata_%sysfunc(date(),date9.)_%sysfunc(compress(%sysfunc(time(),tod5.),%str( :)))\";&lt;/PRE&gt;
&lt;P&gt;not tested, but that should work in plain macro.&amp;nbsp; Or you could do it in a datastep:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  length str $200;
  str=cats("SASData_",put(date(),date9.),"_",compress(put(time(),tod5.),":"));
  call symputx('fname',str);
run;&lt;BR /&gt;libname sas_data "S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\&amp;amp;fname.";&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would however caution against the use of dates/times and other changeable information in folders, files, and paths.&amp;nbsp; I would hope that your using some sort of version control system, or controlled environment, and having this type of changeable naming will break that.&amp;nbsp; Not to mention its harder to program against having to switch libnames and filenames etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:18:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492645#M129495</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-09-05T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492646#M129496</link>
      <description>Hi:&lt;BR /&gt;  According to this note: &lt;A href="http://support.sas.com/kb/56/710.html" target="_blank"&gt;http://support.sas.com/kb/56/710.html&lt;/A&gt; you cannot create 2 directories with 1 LIBNAME statement. so first, you need to make a macro variable with your time value and then you'll need to follow the technique in the note to make the directory.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Wed, 05 Sep 2018 13:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492646#M129496</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-05T13:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492648#M129497</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let date=%sysfunc(today(),date9.) ;
%let hhmm=%sysfunc(compress(%sysfunc(time(),hhmm.),:));
%put &amp;amp;date &amp;amp;hhmm;
data _null_;
rc=dcreate("SASdata_&amp;amp;date._&amp;amp;hhmm",'c:\temp');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492648#M129497</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-05T13:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492649#M129498</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let date=%sysfunc(today(),date9.) ;
%let hhmm=%sysfunc(compress(%sysfunc(time(),hhmm.),:));
%put &amp;amp;date &amp;amp;hhmm;
data _null_;
rc=dcreate("SASdata_&amp;amp;date._&amp;amp;hhmm",'c:\temp');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 13:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492649#M129498</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-05T13:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492673#M129507</link>
      <description>&lt;P&gt;Thanks you answered my question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just one more question&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I specified the libname sas_data and tried to put in the in the dcreate function but it does not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;libname sas_data "S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;date&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;today&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;date9&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token macroname"&gt;%let&lt;/SPAN&gt; hhmm&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;compress&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token macrostatement"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;time&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;hhmm&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;:&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token macrostatement"&gt;%put&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;date&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;&amp;amp;&lt;/SPAN&gt;hhmm&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; _null_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
rc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;dcreate&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"SASdata_&amp;amp;date._&amp;amp;hhmm"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'sas_data.'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;How can I set a path in the very beginning and then refer to it in the dcreate function?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, how can I set automatically a new libname that refers to the subdirectory?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The context of this question is the following: I am importing data from a database, and everytime I do it I want to create a folder with time and date the data was imported. Then I want to run the analysis using the folder I have just created. I can do it manually but it would be cumbersome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So,&amp;nbsp;I want to create my settings in the very beginning, so I don't need to modify them when I import new data with a different date and time&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any help provided&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Andre&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:22:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492673#M129507</guid>
      <dc:creator>joaolopes</dc:creator>
      <dc:date>2018-09-05T14:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492677#M129509</link>
      <description>&lt;P&gt;In the string for the dcreate function, you need a physical pathname. A library reference does not work there.&lt;/P&gt;
&lt;P&gt;You can put the physical path into a macro variable, like you did with the other parts:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let library_path=S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs;
%let date=%sysfunc(today(),date9.) ;
%let hhmm=%sysfunc(compress(%sysfunc(time(),hhmm.),:));
%put &amp;amp;date &amp;amp;hhmm;

data _null_;
rc=dcreate("SASdata_&amp;amp;date._&amp;amp;hhmm","&amp;amp;library_path.");
run;

library sas_data "&amp;amp;library_path.\SASdata_&amp;amp;date._&amp;amp;hhmm.";&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:27:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492677#M129509</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-09-05T14:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492679#M129511</link>
      <description>&lt;P&gt;You need this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="  language-sas"&gt;&lt;CODE class="  language-sas"&gt;rc&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;dcreate&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;"SASdata_&amp;amp;date._&amp;amp;hhmm"&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;&lt;SPAN class="token string"&gt;'S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and refer to it :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname sasdata "&amp;nbsp;S:\StatsTeam\trialdata\Final analysis\Analysis 2018_08_10\other programs\SASdata_&amp;amp;date._&amp;amp;hhmm&amp;nbsp; ";&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492679#M129511</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-05T14:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492683#M129513</link>
      <description>&lt;P&gt;Thanks,&amp;nbsp; it worked but I had to change library to libname&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;library sas_data &lt;SPAN class="token string"&gt;"&amp;amp;library_path.\SASdata_&amp;amp;date._&amp;amp;hhmm."&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to&amp;nbsp;&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;libname sas_data &lt;SPAN class="token string"&gt;"&amp;amp;library_path.\SASdata_&amp;amp;date._&amp;amp;hhmm."&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492683#M129513</guid>
      <dc:creator>joaolopes</dc:creator>
      <dc:date>2018-09-05T14:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to create a folder with todays date and time stamp</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492685#M129514</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my final code and it works and it was exactly what I needed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let library_path=C:\x\y\trialdata\Final analysis\Analysis 2018_08_10\other programs;
%let date=%sysfunc(today(),date9.);
%let hhmm=%sysfunc(compress(%sysfunc(time(),hhmm.),:));
%put &amp;amp;date &amp;amp;hhmm;
data _null_;
rc=dcreate("SASdata_&amp;amp;date._&amp;amp;hhmm", "&amp;amp;library_path.");
run;
libname sas_data "&amp;amp;library_path.\SASdata_&amp;amp;date._&amp;amp;hhmm.";&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Sep 2018 14:38:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-a-folder-with-todays-date-and-time-stamp/m-p/492685#M129514</guid>
      <dc:creator>joaolopes</dc:creator>
      <dc:date>2018-09-05T14:38:02Z</dc:date>
    </item>
  </channel>
</rss>

