<?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 delete all files in sas library ? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111748#M23152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2012 09:41:27 GMT</pubDate>
    <dc:creator>nannà</dc:creator>
    <dc:date>2012-10-31T09:41:27Z</dc:date>
    <item>
      <title>how to delete all files in sas library ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111745#M23149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my sas library path I have got some&amp;nbsp; data_set and some empty folder&lt;/P&gt;&lt;P&gt;I want delete all but if&amp;nbsp; I use&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc datasets lib=output kill nolist memtype=all;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;quit;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I clean only data-sets.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 14:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111745#M23149</guid>
      <dc:creator>nannà</dc:creator>
      <dc:date>2012-10-30T14:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete all files in sas library ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111746#M23150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use the "x" command to go out to the operating system and delete the non-sas files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 15:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111746#M23150</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-10-30T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete all files in sas library ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111747#M23151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The X or SYSTASK statements should do the trick (as &lt;A href="mailto:Doc@Duke"&gt;Doc@Duke&lt;/A&gt; suggests), however if you need more control to select certain types of files, try the FDELETE function.&amp;nbsp; This function will delete any type of file, and since you are in the DATA step, this gives you a great deal of flexibility.&amp;nbsp; For windows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename list pipe 'dir "c:\temp\sasdat" /b/o';&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; length fname $40;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile list truncover;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input fname $;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; rc=filename('abc',catt("c:\temp\sasdat\",fname));&lt;BR /&gt;&amp;nbsp;&amp;nbsp; if rc = 0 and fexist('abc') then rc=fdelete('abc');&lt;BR /&gt;&amp;nbsp;&amp;nbsp; rc=filename('abc');&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 19:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111747#M23151</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2012-10-30T19:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete all files in sas library ?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111748#M23152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2012 09:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-delete-all-files-in-sas-library/m-p/111748#M23152</guid>
      <dc:creator>nannà</dc:creator>
      <dc:date>2012-10-31T09:41:27Z</dc:date>
    </item>
  </channel>
</rss>

