<?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: How to clean all files in sas folder? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576188#M13023</link>
    <description>XCMD? &lt;BR /&gt;proc options option=xcmd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And check the log. If it says XCMD you're good, if it shows NOXCMD you're not.</description>
    <pubDate>Wed, 24 Jul 2019 15:00:04 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-07-24T15:00:04Z</dc:date>
    <item>
      <title>How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575360#M12847</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to know how to clean all files (excel, sas ,txt,...)&amp;nbsp; in a sas folder ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did a search on this community and I only found how to clean sas files and a macro to clean file to file, but I need something to do this automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:15:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575360#M12847</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-22T13:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575366#M12849</link>
      <description>&lt;P&gt;The easiest way is to use the respective command from the operating system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does your directory contain subdirectories? If yes, do you want to remove them also, or only files in there, recursively?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575366#M12849</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-22T13:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575387#M12853</link>
      <description>&lt;P&gt;Define what you mean by "clean".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you mean delete files then OS commands are preferred. If you want to do this from SAS you may be able to use the X command such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;X "del &amp;lt;path&amp;gt;\*.* ";&lt;/P&gt;
&lt;P&gt;to delete ALL files in the folder for Windows to delete all files in the Path, which should start at a drive letter such as c:\folder\subfolder\*.*&lt;/P&gt;
&lt;P&gt;If you want just specific types of files then replace the second * with the file extension such as TXT, XLSX or what ever as needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unix commands I'm not as familiar with but similar should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In many aspects of SAS cleaning refers to code to ensure that variables have the desired characteristics and values prior to analysis.&lt;/P&gt;
&lt;P&gt;Since you are mentioning Excel and text that seems unlikely.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:34:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575387#M12853</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-07-22T14:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575399#M12856</link>
      <description>FDELETE()</description>
      <pubDate>Mon, 22 Jul 2019 14:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575399#M12856</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T14:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575722#M12914</link>
      <description>&lt;P&gt;Some&amp;nbsp;&lt;SPAN&gt;directory contain subdirectories yes. And I need to delete only the files in this folders. This folders are in sas server.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575722#M12914</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-23T10:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575724#M12915</link>
      <description>&lt;P&gt;I want to delete files in a folder. This folder is on sas server&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:24:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575724#M12915</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-23T10:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575725#M12916</link>
      <description>&lt;P&gt;With this function I can delete all files in a sas server folder?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 10:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575725#M12916</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-23T10:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575828#M12939</link>
      <description>Are they SAS datasets? If so, use PROC DATASETS but yes, FDELETE can clean out all files.</description>
      <pubDate>Tue, 23 Jul 2019 14:59:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575828#M12939</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-23T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575877#M12953</link>
      <description>&lt;P&gt;Do you have XCMD enabled? And which operating system is your SAS running on?&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2019 16:19:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/575877#M12953</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-07-23T16:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576055#M12985</link>
      <description>&lt;P&gt;windows&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 07:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576055#M12985</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-24T07:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576056#M12986</link>
      <description>&lt;P&gt;Are datasets and excel and txt files&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 08:00:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576056#M12986</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-24T08:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576188#M13023</link>
      <description>XCMD? &lt;BR /&gt;proc options option=xcmd;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;And check the log. If it says XCMD you're good, if it shows NOXCMD you're not.</description>
      <pubDate>Wed, 24 Jul 2019 15:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576188#M13023</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-24T15:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576832#M13108</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ç.JPG" style="width: 515px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/31325iA13BEB16E73FF7A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="ç.JPG" alt="ç.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 08:25:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576832#M13108</guid>
      <dc:creator>az94</dc:creator>
      <dc:date>2019-07-26T08:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to clean all files in sas folder?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576923#M13127</link>
      <description>&lt;P&gt;Why would you paste that as an image when pasting the text would be so much easier?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyways, this means you do not have the xcmd enabled, which means you need to use FDELETE() to navigate through and clean the files or talk to the IT area about setting up something on the server side.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 14:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-to-clean-all-files-in-sas-folder/m-p/576923#M13127</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-26T14:51:48Z</dc:date>
    </item>
  </channel>
</rss>

