<?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: Deleting an internal file in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251767#M6772</link>
    <description>&lt;P&gt;Another method is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=&lt;EM&gt;datasetname&lt;/EM&gt;(s);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Feb 2016 14:06:36 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2016-02-23T14:06:36Z</dc:date>
    <item>
      <title>Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251762#M6770</link>
      <description>&lt;P&gt;Hi, this is (hopefully) a very basic question but I couldn't find an answer on the net. I'm a beginner regarding SAS, so these are my very first steps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What's the way to delete an "internal" file (i. e. a file in my user directory that I can access over a library)? I know that it is possible to delete any file via a data step with the fdelete function but you need to use the full path to the file, right? &amp;nbsp;What if I'm working with a number of data files in my SAS directory and I want to delete one of them? Is there a possibility do do so just by referencing the internal name of the file (i. e. libraryname.filename without having to include the absolute path)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(I'm working with SAS Studio/University Edition over a virtual machine, btw.)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 13:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251762#M6770</guid>
      <dc:creator>Jazzman</dc:creator>
      <dc:date>2016-02-23T13:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251765#M6771</link>
      <description>&lt;P&gt;PROC DATASETS is used to manage SAS Files. &amp;nbsp;Deletion is just one many tasks PROC DATASETS can do for you.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251765#M6771</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2016-02-23T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251767#M6772</link>
      <description>&lt;P&gt;Another method is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc delete data=&lt;EM&gt;datasetname&lt;/EM&gt;(s);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251767#M6772</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-23T14:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251770#M6773</link>
      <description>&lt;P&gt;Still another method is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
drop table datasetname;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:07:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251770#M6773</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-23T14:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251779#M6775</link>
      <description>&lt;P&gt;Well, the chaps above have given you some good advice for removing SAS files - i.e. datasets. &amp;nbsp;Does this cover what your after, or do you mean other types of files? &amp;nbsp;Generally speaking I would be very careful about removing files using any technique - datasets for instance can be overwritten with new datasteps. &amp;nbsp;There is generally speaking, very little need to actually delete a file, most operations will overwrite a file. &amp;nbsp;So why do you need to do this (if the operation fails, or your put the wrong information in you could lose the file completely, or deleting non-SAS files could remove importatnt files. &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 14:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251779#M6775</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-23T14:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251781#M6776</link>
      <description>&lt;P&gt;Well, one of the reasons to delete a dataset may come from the fact that an overwrite by SAS is not an overwrite. The new dataset is written side-by-side (.lck), and only when the step finishes, the old dataset is deleted and the new one renamed. With big datasets, this may cause a "file is full and may be damaged" error because twice the dataset size is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, libraries tend to clutter, and especially when using EG a large number of datasets in a library will take considerable time to display when the library is expanded in the navigation panel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251781#M6776</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-02-23T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251782#M6777</link>
      <description>&lt;P&gt;Good point, hadn't thought of that! &amp;nbsp;(I wouldn't recommend it though for learners using UE though).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251782#M6777</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-02-23T15:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251785#M6778</link>
      <description>&lt;P&gt;If I have a macro that's generating data sets and looping over a bunch of iterations I may delete datasets to ensure that if there's an error in one loop the results from the previous results are not available.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Feb 2016 15:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251785#M6778</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-23T15:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting an internal file</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251796#M6779</link>
      <description>PROC DELETE is exactly what I was looking for, thanks a lot!</description>
      <pubDate>Tue, 23 Feb 2016 15:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Deleting-an-internal-file/m-p/251796#M6779</guid>
      <dc:creator>Jazzman</dc:creator>
      <dc:date>2016-02-23T15:54:54Z</dc:date>
    </item>
  </channel>
</rss>

