<?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 Folder and Rename in SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588141#M34644</link>
    <description>&lt;P&gt;If you are talking about folders (directories) in the file system, look at the dcreate() and rename() functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are talking about SAS metadata folders, look at the METADATA procedure, but using it is NOT trivial.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 08:55:03 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-09-12T08:55:03Z</dc:date>
    <item>
      <title>Create Folder and Rename in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588136#M34643</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please can you help to provide how to create the &lt;STRONG&gt;Folders &lt;/STRONG&gt;in SAS and &lt;STRONG&gt;Rename &lt;/STRONG&gt;the folders using the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;Dhruva&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588136#M34643</guid>
      <dc:creator>dhruvakumar</dc:creator>
      <dc:date>2019-09-12T08:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Folder and Rename in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588141#M34644</link>
      <description>&lt;P&gt;If you are talking about folders (directories) in the file system, look at the dcreate() and rename() functions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are talking about SAS metadata folders, look at the METADATA procedure, but using it is NOT trivial.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 08:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588141#M34644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-09-12T08:55:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create Folder and Rename in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588148#M34645</link>
      <description>&lt;P&gt;Dear KurtBremser,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for advice.If you don't mind can you help one example ...Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 09:10:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588148#M34645</guid>
      <dc:creator>dhruvakumar</dc:creator>
      <dc:date>2019-09-12T09:10:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create Folder and Rename in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588237#M34649</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/203162"&gt;@dhruvakumar&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear KurtBremser,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for advice.If you don't mind can you help one example ...Thanks&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The documentation for each function has examples. Is there something unclear about them?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DCREATE()&lt;/P&gt;
&lt;H2 class="xis-title"&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1aj29pf4cxnirn15q5hmf0tv438.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p1aj29pf4cxnirn15q5hmf0tv438.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/H2&gt;
&lt;DIV id="p08o7z0tkbf4apn1fd0wbdhuewzx" class="xis-example"&gt;
&lt;DIV id="n1930h2wgsljvrn1hdjlw5mr45hc" class="xis-codeBlock"&gt;
&lt;PRE class="xis-code"&gt;data one;                                                                                                                                     
/* To create a new directory in the UNIX operating environment, using the name                                                                
   that is stored in the variable DirectoryName, follow this form: */                                                                         
                                                                                                                                              
 NewDirectory=dcreate(DirectoryName, '/local/u/abcdef/');                                                                                     
                                                                                                                                              
/* To create a new directory in the Windows operating environment, using the name                                                             
   that is stored in the variable DirectoryName, follow this form: */                                                                         
                                                                                                                                              
NewDirectory=dcreate(DirectoryName, 'd:\testdir\');                                                                                           
                                                                                                                                              
run;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;RENAME()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Example 1: Renaming Data Sets and Catalog Entries
The following examples rename a SAS data set from Data1 to Data2, and also rename a catalog entry from A.SCL to B.SCL.
rc1=rename('mylib.data1', 'data2');
rc2=rename('mylib.mycat.a.scl', 'b', 'catalog');
Example 2: Renaming an External File
The following examples rename external files.
   /* Rename a file that is located in another directory. */
rc=rename('/local/u/testdir/first',
          '/local/u/second', 'file');
   /* Rename a PC file. */
rc=rename('d:\temp', 'd:\testfile', 'file');
Example 3: Renaming a Directory
The following example renames a directory in the UNIX operating environment.
rc=rename('/local/u/testdir/', '/local/u/oldtestdir', 'file');
Example 4: Renaming a Generation Data Set
The following example renames the generation data set Work.One to Work.Two, where the password for Work.One#003 is my-password.
rc=rename('work.one', 'two',,, 3,'my-password');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p14axci3mo3egan1okbcydvbt433.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p14axci3mo3egan1okbcydvbt433.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I highly suggest bookmarking this page, it's a good organization of functions organized by category&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n01f5qrjoh9h4hn1olbdpb5pr2td.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=n01f5qrjoh9h4hn1olbdpb5pr2td.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 12 Sep 2019 13:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Create-Folder-and-Rename-in-SAS/m-p/588237#M34649</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-09-12T13:55:48Z</dc:date>
    </item>
  </channel>
</rss>

