<?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: create sub folder in work in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214937#M52917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let newdir=my_new_subdir;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;length command x $ 300;&lt;/P&gt;&lt;P&gt;x = pathname('work');&lt;/P&gt;&lt;P&gt;command = 'mkdir '!!trim(x)!!"/&amp;amp;newdir";&lt;/P&gt;&lt;P&gt;call system(command);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Apr 2015 13:48:20 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2015-04-02T13:48:20Z</dc:date>
    <item>
      <title>create sub folder in work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214934#M52914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to create a sub-folder under WORK folder(temp folder),how to write SAS code to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:08:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214934#M52914</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2015-04-02T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: create sub folder in work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214935#M52915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Creating a subfolder requires using an operating system command.&amp;nbsp; So the method will vary from operating system to operating system.&amp;nbsp; SAS has methods that allow you to issue an operating system command, so this will be possible.&amp;nbsp; The key question boils down to this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you knew the folder that holds the WORK library.&amp;nbsp; (SAS can retrieve that path.)&amp;nbsp; We'll call that "WORK library folder".&amp;nbsp; What operating system command would you issue to create the proper subfolder?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:22:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214935#M52915</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2015-04-02T13:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: create sub folder in work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214936#M52916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dcreate() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214936#M52916</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-02T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: create sub folder in work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214937#M52917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%let newdir=my_new_subdir;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;length command x $ 300;&lt;/P&gt;&lt;P&gt;x = pathname('work');&lt;/P&gt;&lt;P&gt;command = 'mkdir '!!trim(x)!!"/&amp;amp;newdir";&lt;/P&gt;&lt;P&gt;call system(command);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 13:48:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214937#M52917</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-04-02T13:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: create sub folder in work</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214938#M52918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use the "new" DLCREATEDIR option and the PATHNAME function.&amp;nbsp; If you want a FILEREF use PATHNAME again in a FILENAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;options&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;DLCREATEDIR&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; FT51F001 &lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;"%sysfunc(pathname(work,L))/subfolderinwork"&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2015 14:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/create-sub-folder-in-work/m-p/214938#M52918</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2015-04-02T14:03:27Z</dc:date>
    </item>
  </channel>
</rss>

