<?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 PROC SQL - DELETE FROM TABLE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45127#M9294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Example of your query and what you are trying to achieve? Please elaborate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Mar 2012 07:58:44 GMT</pubDate>
    <dc:creator>manojinpec</dc:creator>
    <dc:date>2012-03-28T07:58:44Z</dc:date>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45124#M9291</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I use PROC SQL; DELETE FROM TABLE; i see that sas file is constantly increasing. How can I enforce (with some option perhaps) to delete recordes permanently and free the disk space?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 16:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45124#M9291</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2012-03-27T16:24:26Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45125#M9292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if this is relevant: if I use system options compress=yes, and then after I delete some records, the file size remains the same, unless you invoke another system option: reuse=yes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would look like this:&lt;/P&gt;&lt;P&gt;options compress=yes;&lt;/P&gt;&lt;P&gt;options reuse=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What it does is to reuse those vacant slots from deleted records instead of appending to the end.&lt;/P&gt;&lt;P&gt;BTW, these two options are also data set options as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Mar 2012 16:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45125#M9292</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2012-03-27T16:34:11Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45126#M9293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand what you mean.&lt;/P&gt;&lt;P&gt;If you want delete a table ,then use DROP TABLE&lt;/P&gt;&lt;P&gt;If you want keep the constructure of a table ,then use CREAT TABLE xx LIKE xx, then drop the original table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 06:57:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45126#M9293</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-03-28T06:57:15Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45127#M9294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Example of your query and what you are trying to achieve? Please elaborate&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 07:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45127#M9294</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2012-03-28T07:58:44Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45128#M9295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've got table T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I delete all record from it (Proc sql; Delete from T1;) the table size doesn't decrease. Moreover, when I put some records in this table I see that record number shows as If there were some "invisible records" inside. System seems to keep deleted record which take disk space and when iserting new records the table size is contantly growing..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 08:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45128#M9295</guid>
      <dc:creator>tom12122</dc:creator>
      <dc:date>2012-03-28T08:21:43Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45129#M9296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; when you delete all records from table , try seeing contents of dataset and see if you can see that or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 08:25:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45129#M9296</guid>
      <dc:creator>manojinpec</dc:creator>
      <dc:date>2012-03-28T08:25:29Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45130#M9297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then you tried the way HaiKuo proposed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 08:58:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45130#M9297</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-03-28T08:58:59Z</dc:date>
    </item>
    <item>
      <title>PROC SQL - DELETE FROM TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45131#M9298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You seem to have figured out how SAS works when you delete records without recreating the dataset.&amp;nbsp; If it is a concern to you then recreate the dataset.&amp;nbsp; (data old; set old; run;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Mar 2012 11:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-SQL-DELETE-FROM-TABLE/m-p/45131#M9298</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-28T11:20:43Z</dc:date>
    </item>
  </channel>
</rss>

