<?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 how to delete spde files on a specific date in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-delete-spde-files-on-a-specific-date/m-p/918461#M44389</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found duplicate spde file into many folder. For example, in sas2023 folder, I see&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ha_auto_inforcefev2023.dpf.00010aa2.215.1.spds9&amp;nbsp; &amp;nbsp;April 4, 2023&lt;/P&gt;
&lt;P&gt;ha_auto_inforcefev2023.dpf.0000c9da.15.1.spds9&amp;nbsp; &amp;nbsp; February 28, 2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the same issue with premium dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ha_auto_prmfev2023.dpf.0000c9da.67.1.spds9&amp;nbsp;&amp;nbsp;April 4, 2023&lt;/P&gt;
&lt;P&gt;ha_auto_prmfev2023.dpf.00010aa2.23.1.spds9&amp;nbsp;February 28, 2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to delete those on April 4.&lt;/P&gt;
&lt;P&gt;How do we do that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 18:32:47 GMT</pubDate>
    <dc:creator>alepage</dc:creator>
    <dc:date>2024-02-29T18:32:47Z</dc:date>
    <item>
      <title>how to delete spde files on a specific date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-delete-spde-files-on-a-specific-date/m-p/918461#M44389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found duplicate spde file into many folder. For example, in sas2023 folder, I see&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ha_auto_inforcefev2023.dpf.00010aa2.215.1.spds9&amp;nbsp; &amp;nbsp;April 4, 2023&lt;/P&gt;
&lt;P&gt;ha_auto_inforcefev2023.dpf.0000c9da.15.1.spds9&amp;nbsp; &amp;nbsp; February 28, 2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have the same issue with premium dataset&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ha_auto_prmfev2023.dpf.0000c9da.67.1.spds9&amp;nbsp;&amp;nbsp;April 4, 2023&lt;/P&gt;
&lt;P&gt;ha_auto_prmfev2023.dpf.00010aa2.23.1.spds9&amp;nbsp;February 28, 2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to delete those on April 4.&lt;/P&gt;
&lt;P&gt;How do we do that ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 18:32:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-delete-spde-files-on-a-specific-date/m-p/918461#M44389</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-02-29T18:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to delete spde files on a specific date</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-delete-spde-files-on-a-specific-date/m-p/918518#M44392</link>
      <description>&lt;P&gt;What makes you think these are "duplicates"? The spd engine stores data in junks and it's very well possible that these junks get created at different times.&lt;/P&gt;
&lt;P&gt;Consider below sample code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname test spde 'c:\temp\out' partsize=16M;&lt;BR /&gt;options compress=no;

data work.source;
  length var $1024;
  do k=1 to 16;
    do i=1 to 1024;
      output;
    end;
  end;
  drop i k;
run;

proc append base=test.target data=work.source;
run;quit;

data _null_;
  call sleep(60,1);
run;

proc append base=test.target data=work.source;
run;quit;

proc contents data=test.target;
run;

libname test clear;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I've defined the libname with the spd engine to create 16 megabyte junks.&lt;/P&gt;
&lt;P&gt;The source table work.source is more or less 16 megabyte. I then append the work table twice to library test but wait one second between the two append operations.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can see in below screenshot that the two junks have been created/modified at different times. They belong to the same table with the spd engine and if you delete one of these junks (files) then you will corrupt the table.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1709249489462.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94281i3034F0F0125B0E8B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1709249489462.png" alt="Patrick_0-1709249489462.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Use Proc Contents to show you when the table has last been modified. This date should be the same than the max date of your junks.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_1-1709249936018.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/94282iDAA677A94E791F33/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_1-1709249936018.png" alt="Patrick_1-1709249936018.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really believe that there are junks that are not part of your table (unlikely) then one option for a clean-up:&lt;/P&gt;
&lt;P&gt;1. Define another spde libname that points to different folders&lt;/P&gt;
&lt;P&gt;2. Use Proc Datasets/Copy with Move. Any junk that remains after this operation in the source folders is then something can delete&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Use OS commands or SAS function fdelete to remove any file that you've identified as obsolete.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Btw: I believe the correct terminology for "junks" would be "buckets".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 00:06:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/how-to-delete-spde-files-on-a-specific-date/m-p/918518#M44392</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-03-01T00:06:54Z</dc:date>
    </item>
  </channel>
</rss>

