<?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 get the min or max date in a dataset in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15302#M2666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I use a dataset containing dates&lt;/P&gt;&lt;P&gt;I would like to append new dates from another file but surely not add yet existing dates&lt;/P&gt;&lt;P&gt;So I would like to filter dates from new file considering the greatest date in my base dataset&lt;/P&gt;&lt;P&gt;something like : where date ge max date of base dateset !&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2011 10:10:21 GMT</pubDate>
    <dc:creator>joel</dc:creator>
    <dc:date>2011-12-15T10:10:21Z</dc:date>
    <item>
      <title>get the min or max date in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15302#M2666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I use a dataset containing dates&lt;/P&gt;&lt;P&gt;I would like to append new dates from another file but surely not add yet existing dates&lt;/P&gt;&lt;P&gt;So I would like to filter dates from new file considering the greatest date in my base dataset&lt;/P&gt;&lt;P&gt;something like : where date ge max date of base dateset !&lt;/P&gt;&lt;P&gt;Many thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 10:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15302#M2666</guid>
      <dc:creator>joel</dc:creator>
      <dc:date>2011-12-15T10:10:21Z</dc:date>
    </item>
    <item>
      <title>get the min or max date in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15303#M2667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.First load your new file to a dataset 2.proc sql;&amp;nbsp;&amp;nbsp; select max(date) into :max_date from old_table;&amp;nbsp;&amp;nbsp; quit; 3. Now you can filter the date if the date is greater than the macro variable:max_date 4.you can append to the existing dataset.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 10:31:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15303#M2667</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2011-12-15T10:31:18Z</dc:date>
    </item>
    <item>
      <title>get the min or max date in a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15304#M2668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello R_Win&lt;/P&gt;&lt;P&gt;Many thanks for this solution which helps me very much&lt;/P&gt;&lt;P&gt;Simple, concise, fast, in a word : efficient !&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Joël&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2011 11:52:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/get-the-min-or-max-date-in-a-dataset/m-p/15304#M2668</guid>
      <dc:creator>joel</dc:creator>
      <dc:date>2011-12-15T11:52:16Z</dc:date>
    </item>
  </channel>
</rss>

