<?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: Can SAS Create Folders? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112482#M10102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Live can be that easy when it is done automatic&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/" title="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/"&gt; SAS trick: get the LIBNAME statement to create folders for you - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Aug 2013 19:17:23 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-08-15T19:17:23Z</dc:date>
    <item>
      <title>Can SAS Create Folders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112479#M10099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose I have a library of SAS datasets that are updated regularly, and I use those datasets to create new analysis datasets for each update.&amp;nbsp; I want to store those new analysis datasets in archived folders.&amp;nbsp; Is it possible to have SAS create a folder in my code, or do I have to manually create the folder and then tell SAS where to store the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, let's say that I have my base datasets stored in C:\Studies\DrugA\Protocol1\Data.&amp;nbsp; And suppose that I am outputting my analysis data into the following directory: C:\Studies\DrugA\Protocol1\AnalysisDatasets.&amp;nbsp; However, I want to archive them, so I will have a new subfolder for each date I run the data, so I might have the following folders:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Studies\DrugA\Protocol1\AnalysisDatasets\2013-01-01&lt;/P&gt;&lt;P&gt;C:\Studies\DrugA\Protocol1\AnalysisDatasets\2013-02-10&lt;/P&gt;&lt;P&gt;C:\Studies\DrugA\Protocol1\AnalysisDatasets\2013-02-17&lt;/P&gt;&lt;P&gt;C:\Studies\DrugA\Protocol1\AnalysisDatasets\2013-04-11&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set up SAS code to create a folder based on the date the program is run, or do I have to manually create the folder and then change the LIBNAME statement in my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 18:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112479#M10099</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2013-08-15T18:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS Create Folders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112480#M10100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it can, but we just run a DOS command to do it:&amp;nbsp; Here is a sample doing a file move.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %let cmd = MOVE "&amp;amp;prefix.\From\File.txt" "&amp;amp;prefix.\Archive\File.txt";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; option noxwait;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; X &amp;amp;movecmd;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 18:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112480#M10100</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-08-15T18:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS Create Folders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112481#M10101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, Use the dcreate() function with a macro variable for the date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1aj29pf4cxnirn15q5hmf0tv438.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p1aj29pf4cxnirn15q5hmf0tv438.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:02:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112481#M10101</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-08-15T19:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can SAS Create Folders?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112482#M10102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Live can be that easy when it is done automatic&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/" title="http://blogs.sas.com/content/sasdummy/2013/07/02/use-dlcreatedir-to-create-folders/"&gt; SAS trick: get the LIBNAME statement to create folders for you - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 19:17:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Can-SAS-Create-Folders/m-p/112482#M10102</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-15T19:17:23Z</dc:date>
    </item>
  </channel>
</rss>

