<?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 Dealing with dataset DELROWS in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/837629#M25225</link>
    <description>&lt;P&gt;Im checking my datasets and a way to shrink them to retrieve some space, and i saw that after deleting millions of rows from some datasets using proc sql; delete; the datasets keeps the size on the server file, and i saw in the dictionary table that there is column named delrows where you have all the data deleted "logically" from the dataset, but not from the file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdiaz_0-1665397536367.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76048i1E28C40EBEFFBC96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pdiaz_0-1665397536367.png" alt="pdiaz_0-1665397536367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this is a sample of some tables with a lot of rows that are deleted from the dataset but keep, i supose logically in there, like a windows delete i supose there would be a "defragmentation" of the table to phisically delete this registers, but i didn't found anything on the kb to proceed with it, is there a way to permanently remove this rows and regain the space at administration level?&lt;BR /&gt;&lt;BR /&gt;Or am i forced to do a DATA / SET step to recreate the table?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 10 Oct 2022 10:28:35 GMT</pubDate>
    <dc:creator>W1ndwaker</dc:creator>
    <dc:date>2022-10-10T10:28:35Z</dc:date>
    <item>
      <title>Dealing with dataset DELROWS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/837629#M25225</link>
      <description>&lt;P&gt;Im checking my datasets and a way to shrink them to retrieve some space, and i saw that after deleting millions of rows from some datasets using proc sql; delete; the datasets keeps the size on the server file, and i saw in the dictionary table that there is column named delrows where you have all the data deleted "logically" from the dataset, but not from the file:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pdiaz_0-1665397536367.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76048i1E28C40EBEFFBC96/image-size/medium?v=v2&amp;amp;px=400" role="button" title="pdiaz_0-1665397536367.png" alt="pdiaz_0-1665397536367.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;this is a sample of some tables with a lot of rows that are deleted from the dataset but keep, i supose logically in there, like a windows delete i supose there would be a "defragmentation" of the table to phisically delete this registers, but i didn't found anything on the kb to proceed with it, is there a way to permanently remove this rows and regain the space at administration level?&lt;BR /&gt;&lt;BR /&gt;Or am i forced to do a DATA / SET step to recreate the table?&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 10:28:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/837629#M25225</guid>
      <dc:creator>W1ndwaker</dc:creator>
      <dc:date>2022-10-10T10:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with dataset DELROWS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/837634#M25226</link>
      <description>&lt;P&gt;For SAS datasets, you basically have two options:&lt;/P&gt;
&lt;P&gt;- as you suggested, recreate the dataset&lt;/P&gt;
&lt;P&gt;- have the dataset compressed, and specify REUSE=YES. This will compact the dataset over time, but it will be fragmented as time goes by.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2022 11:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/837634#M25226</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2022-10-10T11:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with dataset DELROWS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840296#M25375</link>
      <description>I've been searching for other options but in the end i think we'll have to stick to the data step to recreate the table, and try to avoid deletes with proc sql in the bigger tables.&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply!</description>
      <pubDate>Mon, 24 Oct 2022 14:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840296#M25375</guid>
      <dc:creator>W1ndwaker</dc:creator>
      <dc:date>2022-10-24T14:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with dataset DELROWS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840498#M25382</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*
Do you have SAS/IML?
If you have, you could try PURGE operator

Here is an example:
*/


libname x v9 'C:\temp\a';
data x.have;
 set sashelp.heart;
run;

proc sql;
delete from x.have where status='Dead';
quit;



proc iml;
edit x.have;
purge;
close;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Oct 2022 11:58:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840498#M25382</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-10-25T11:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with dataset DELROWS</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840502#M25383</link>
      <description>I don't have IML, but in the end will be the same as a data step, because purge invalidates the index of the table and you have to recreate it, and this will lead to a pruge and then a index creation and will be the same probably speaking of mantainance times.&lt;BR /&gt;&lt;BR /&gt;Think we will go for the data step, if it's run periodicaly it'll be pretty fast after the first celaning.</description>
      <pubDate>Tue, 25 Oct 2022 12:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Dealing-with-dataset-DELROWS/m-p/840502#M25383</guid>
      <dc:creator>W1ndwaker</dc:creator>
      <dc:date>2022-10-25T12:41:00Z</dc:date>
    </item>
  </channel>
</rss>

