<?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 Creating Folder and Sub Folder in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486474#M287171</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to create a folder ('07 - 2018 JUL' which is dynamic based on the previous month) and a sub folder&amp;nbsp;('Personal') at the same time under the location 'C:\Temp\2018 - 2019'. I figured out the folder part, but don't know how to create a sub folder. Can any one help please. Thanks.&lt;/P&gt;
&lt;P&gt;My ultimate folder hierarchy will be&amp;nbsp; '&lt;SPAN&gt;&lt;STRONG&gt;C:\Temp\2018 - 2019&lt;/STRONG&gt;\07 - 2018 JUL\Personal'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;DATA _NULL_;
  rootdir='C:\Temp\2018 - 2019';
  today=today();
  lastmonth=intnx('month',today,-1);
  dir1=catx(' ',put(month(lastmonth),z2.),'-',year(lastmonth),UPCASE(put(lastmonth,monname3.)));
  newdir1=dcreate(dir1,rootdir);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Aug 2018 20:24:22 GMT</pubDate>
    <dc:creator>mlogan</dc:creator>
    <dc:date>2018-08-13T20:24:22Z</dc:date>
    <item>
      <title>Creating Folder and Sub Folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486474#M287171</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;I want to create a folder ('07 - 2018 JUL' which is dynamic based on the previous month) and a sub folder&amp;nbsp;('Personal') at the same time under the location 'C:\Temp\2018 - 2019'. I figured out the folder part, but don't know how to create a sub folder. Can any one help please. Thanks.&lt;/P&gt;
&lt;P&gt;My ultimate folder hierarchy will be&amp;nbsp; '&lt;SPAN&gt;&lt;STRONG&gt;C:\Temp\2018 - 2019&lt;/STRONG&gt;\07 - 2018 JUL\Personal'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;DATA _NULL_;
  rootdir='C:\Temp\2018 - 2019';
  today=today();
  lastmonth=intnx('month',today,-1);
  dir1=catx(' ',put(month(lastmonth),z2.),'-',year(lastmonth),UPCASE(put(lastmonth,monname3.)));
  newdir1=dcreate(dir1,rootdir);
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 20:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486474#M287171</guid>
      <dc:creator>mlogan</dc:creator>
      <dc:date>2018-08-13T20:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Folder and Sub Folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486476#M287172</link>
      <description>&lt;P&gt;Call DCREATE again with the PERSONAL name?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Aug 2018 20:26:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486476#M287172</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-13T20:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Folder and Sub Folder</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486536#M287174</link>
      <description>&lt;P&gt;Function &lt;FONT face="courier new,courier"&gt;dcreate()&lt;/FONT&gt; creates all parent directories when you create the bottom one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 05:10:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Folder-and-Sub-Folder/m-p/486536#M287174</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-08-14T05:10:54Z</dc:date>
    </item>
  </channel>
</rss>

