<?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: Need to place an aumated folder (date folder) while exporting the file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425807#M104897</link>
    <description>&lt;P&gt;How about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL; 
    call symput ('Folder_dt',put(today(), YYMMDDd10.)); 
run; 
%put &amp;amp;=folder_dt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Jan 2018 16:19:08 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-01-08T16:19:08Z</dc:date>
    <item>
      <title>Need to place an aumated folder (date folder) while exporting the file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425801#M104892</link>
      <description>&lt;P&gt;Dear Experts ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in a need of an automation of the file folder path&amp;nbsp;, The exporting file should be taken and placed in the folder and folder name should be todays date ,which should automatically identified . Could any one help on this . I tried with the attached macro&amp;nbsp; but it is not working&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let td_dt=today(); 

data _NULL; 
call symput ('Folder_dt',put(&amp;amp;td_dt, YYMMDDd10.)); 

run; 

%put &amp;amp;Folder_dt; &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425801#M104892</guid>
      <dc:creator>ambadi007</dc:creator>
      <dc:date>2018-01-08T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Need to place an aumated folder (date folder) while exporting the file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425806#M104896</link>
      <description>&lt;P&gt;What "exporting file"?&amp;nbsp; All you have shown is a macro variable creation (from a already existing function!!) and a put.&amp;nbsp; If you want to write to a file with the date in the filename or in the path:&lt;/P&gt;
&lt;PRE&gt;/* Folder */

ods rtf file="c:/temp/%sysfunc(today(),yymmdd10.)/yourfile.rtf";

/* Filename */

ods rtf file="c:/temp/somewhere/file_%sysfunc(today(),yymmdd10.).rtf";&lt;/PRE&gt;
&lt;P&gt;No need to do all the macro parts.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425806#M104896</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-08T16:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need to place an aumated folder (date folder) while exporting the file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425807#M104897</link>
      <description>&lt;P&gt;How about this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL; 
    call symput ('Folder_dt',put(today(), YYMMDDd10.)); 
run; 
%put &amp;amp;=folder_dt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425807#M104897</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-01-08T16:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: Need to place an aumated folder (date folder) while exporting the file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425808#M104898</link>
      <description>&lt;P&gt;See sample code below. It uses the macro facility to create the foldername. Then a LIBNAME statement together with the DLCREATEDIR system option is used to create the actual folder on the filesystem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;options dlcreatedir;&lt;BR /&gt;&lt;BR /&gt;%let todayFolderName = %sysfunc( today() , yymmddd10.);&lt;BR /&gt;&lt;BR /&gt;libname _cdir "c:\temp\&amp;amp;todayFolderName";&lt;BR /&gt;libname _cdir clear;&lt;/PRE&gt;
&lt;P&gt;Depending on your SAS version have a look at the DCREATE function as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2018 16:26:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-to-place-an-aumated-folder-date-folder-while-exporting-the/m-p/425808#M104898</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-08T16:26:15Z</dc:date>
    </item>
  </channel>
</rss>

