<?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: Last n obs from each group in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146395#M29144</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add, the double dow loop &lt;A href="http://support.sas.com/resources/papers/proceedings09/038-2009.pdf" title="http://support.sas.com/resources/papers/proceedings09/038-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/038-2009.pdf&lt;/A&gt; looks to uses the merge by with a reset at the same position / group order.&lt;/P&gt;&lt;P&gt;In that case you have a generic approach for a sorted dataset.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2014 17:04:38 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2014-09-17T17:04:38Z</dc:date>
    <item>
      <title>Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146387#M29136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can anyone please help me to get last n obs from each group with out sort the dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 06:17:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146387#M29136</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-09-16T06:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146388#M29137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It are the first n obs of each group when processing in reversed order.&amp;nbsp; For small data re-sorting is easy and quickest way. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 06:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146388#M29137</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-16T06:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146389#M29138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but i cant sort the data, i need to get from as data it is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 06:24:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146389#M29138</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-09-16T06:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146390#M29139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please elaborate your limitations.&amp;nbsp; &lt;BR /&gt;With an external RDBMS there is no physical order defined only logical ordering. In that case a question like this is humbug.&lt;BR /&gt;With streaming data you could define a queue of defined size. The lag function of SAS is looking like that. Also a hash can be used for that&lt;BR /&gt;Big data with SAS-datasets (relative to your machine) can be processed using a point but than you are losing the first/last options.&lt;/P&gt;&lt;P&gt;What to do if there are less than n records in a group?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146390#M29139</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-16T07:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146391#M29140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Thanks my issue has been solved.&lt;/P&gt;&lt;P&gt;Should i delete this post?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 07:17:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146391#M29140</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2014-09-16T07:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146392#M29141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. On the contrary, I think you should share your solution with the forum. So should someone else have the similar issue, the answer becomes available. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Haikuo &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146392#M29141</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-09-16T14:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146393#M29142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't this same questions &lt;A __default_attr="645292" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt; showed us the clever solution to within the last month?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2014 14:09:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146393#M29142</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-09-16T14:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146394#M29143</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was so honor being mentioned by SAS Master&amp;nbsp; Mr.&amp;nbsp; NULL .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 12:03:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146394#M29143</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-17T12:03:39Z</dc:date>
    </item>
    <item>
      <title>Re: Last n obs from each group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146395#M29144</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To add, the double dow loop &lt;A href="http://support.sas.com/resources/papers/proceedings09/038-2009.pdf" title="http://support.sas.com/resources/papers/proceedings09/038-2009.pdf"&gt;http://support.sas.com/resources/papers/proceedings09/038-2009.pdf&lt;/A&gt; looks to uses the merge by with a reset at the same position / group order.&lt;/P&gt;&lt;P&gt;In that case you have a generic approach for a sorted dataset.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2014 17:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Last-n-obs-from-each-group/m-p/146395#M29144</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-09-17T17:04:38Z</dc:date>
    </item>
  </channel>
</rss>

