<?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 select data set in a folder based on the year they were created and move them in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771796#M39655</link>
    <description>&lt;P&gt;You cannot have duplicate DATASETS in the same library.&amp;nbsp; You cannot have duplicate FILES in the same directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It kind of looks like you are trying to look a the FILES created by the SPDE engine.&lt;/P&gt;
&lt;P&gt;Why not look at the DATASETS created by using the SPDE engine?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname old spde './old/';
proc contents data=old._all_ noprint out=contents; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 02 Oct 2021 23:30:18 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-10-02T23:30:18Z</dc:date>
    <item>
      <title>How to select data set in a folder based on the year they were created and move them</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771777#M39654</link>
      <description>&lt;P&gt;&amp;nbsp;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It might happen that I have duplicate dataset in the same folder but not created on the same date.&amp;nbsp; But due to the use of spde system, the name is not exactly the same&amp;nbsp; (see the snapshot)&lt;/P&gt;
&lt;P&gt;So if I use a proc copy as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc copy in=src1 out=dest1 memtype=data;&lt;BR /&gt;select e001_tracking_scenario e999_tracking_scenario&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure that I will pick the dataset produce on September 14, 2021.&lt;/P&gt;
&lt;P&gt;What's the best way to do that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-10-02_16-54-08.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/64322iAA4BBA05CC17E4C1/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-10-02_16-54-08.png" alt="2021-10-02_16-54-08.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 20:57:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771777#M39654</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2021-10-02T20:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to select data set in a folder based on the year they were created and move them</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771796#M39655</link>
      <description>&lt;P&gt;You cannot have duplicate DATASETS in the same library.&amp;nbsp; You cannot have duplicate FILES in the same directory.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It kind of looks like you are trying to look a the FILES created by the SPDE engine.&lt;/P&gt;
&lt;P&gt;Why not look at the DATASETS created by using the SPDE engine?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname old spde './old/';
proc contents data=old._all_ noprint out=contents; run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 02 Oct 2021 23:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771796#M39655</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-10-02T23:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to select data set in a folder based on the year they were created and move them</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771797#M39656</link>
      <description>&lt;P&gt;With SPDE the data gets partitioned and there is also additional metadata (in separate files) which has the information about these partitions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you update a table then only the partitions (the physical files) will change that have rows that changed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to extract data from a specific date then this needs to happen on data level and there is hopefully some update_date or creation_date column in your data which you can use for such a selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In short: You can't use these physical partitions directly. You need to access your data via the SPDE engine (libname ... spde ....).&lt;/P&gt;</description>
      <pubDate>Sat, 02 Oct 2021 23:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-select-data-set-in-a-folder-based-on-the-year-they-were/m-p/771797#M39656</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-10-02T23:46:20Z</dc:date>
    </item>
  </channel>
</rss>

