<?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 Keep the obs based on Date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Keep-the-obs-based-on-Date/m-p/26853#M4807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data are already sorted by pid, then you could just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Main;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Pid $ no Dt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;a1&amp;nbsp; 1&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;a2&amp;nbsp; 2&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;a3&amp;nbsp; 3&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Incre;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Pid $ no Dt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;a1&amp;nbsp; 5&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;a4&amp;nbsp; 6&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;a5&amp;nbsp; 7&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; update main incre;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by pid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 14:42:39 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-01-10T14:42:39Z</dc:date>
    <item>
      <title>Keep the obs based on Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-the-obs-based-on-Date/m-p/26852#M4806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i am having main table the incre table append to the main table&lt;BR /&gt;but while appending to the Main table based on pid and dt it should remove the older one&lt;BR /&gt;ex in main table pid a1 is there again in incr table again pid with a1 came but with diff no&lt;BR /&gt;so it should append to main table and remove the older one based on date&lt;/P&gt;&lt;P&gt;Main Table&lt;/P&gt;&lt;P&gt;Pid no Dt&lt;BR /&gt;a1&amp;nbsp; 1&amp;nbsp; 12jan2011&lt;BR /&gt;a2&amp;nbsp; 2&amp;nbsp; 12jan2011&lt;BR /&gt;a3&amp;nbsp; 3&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Incre Table&lt;BR /&gt;Pid no Dt&lt;BR /&gt;a1&amp;nbsp; 5&amp;nbsp; 18jan2011&lt;BR /&gt;a4&amp;nbsp; 6&amp;nbsp; 18jan2011&lt;BR /&gt;a5&amp;nbsp; 7&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Output&lt;BR /&gt;Pid no Dt&lt;BR /&gt;a1&amp;nbsp; 5&amp;nbsp; 18jan2011&lt;BR /&gt;a2&amp;nbsp; 2&amp;nbsp; 12jan2011&lt;BR /&gt;a3&amp;nbsp; 3&amp;nbsp; 12jan2011&lt;BR /&gt;a4&amp;nbsp; 6&amp;nbsp; 18jan2011&lt;BR /&gt;a5&amp;nbsp; 7&amp;nbsp; 18jan2011&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 14:10:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-the-obs-based-on-Date/m-p/26852#M4806</guid>
      <dc:creator>sas_</dc:creator>
      <dc:date>2012-01-10T14:10:24Z</dc:date>
    </item>
    <item>
      <title>Keep the obs based on Date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Keep-the-obs-based-on-Date/m-p/26853#M4807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your data are already sorted by pid, then you could just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Main;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Pid $ no Dt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;a1&amp;nbsp; 1&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;a2&amp;nbsp; 2&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;a3&amp;nbsp; 3&amp;nbsp; 12jan2011&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Incre;&lt;/P&gt;&lt;P&gt;&amp;nbsp; informat dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input Pid $ no Dt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; cards;&lt;/P&gt;&lt;P&gt;a1&amp;nbsp; 5&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;a4&amp;nbsp; 6&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;a5&amp;nbsp; 7&amp;nbsp; 18jan2011&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data Output;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format dt date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; update main incre;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by pid;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 14:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Keep-the-obs-based-on-Date/m-p/26853#M4807</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-10T14:42:39Z</dc:date>
    </item>
  </channel>
</rss>

