<?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: dense_rank over (partitioning in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/dense-rank-over-partitioning/m-p/212547#M52495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC RANK would allow you to do ranking using "dense". I've never used "decode()" and just looked it up in the Oracle documentation. From what I understand this would require some post processing of the result returned by PROC RANK (so an additional PROC SQL/Data Step on the output of the PROC RANK procedure via an additional pass through the data).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jul 2015 13:11:59 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2015-07-28T13:11:59Z</dc:date>
    <item>
      <title>dense_rank over (partitioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dense-rank-over-partitioning/m-p/212546#M52494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is oracle query and I am trying to do it in SAS. I did not find any alternative. Can someone please help me in this, I really appreciate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT APPS.*,&lt;/P&gt;&lt;P&gt;DENSE_RANK() OVER (PARTITION BY APPS.APP_NBR ORDER BY APPS.V_RANK_DAYS2APP, ABS(V_RANK_DAYS2APP),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DECODE(MATCHED_ON,7,1, 5,2, 3,3, 6,4, 1,5, 4,6, 2,7, 9), ROWNUM) AS V_DAYS2APP_RANK&lt;/P&gt;&lt;P&gt;FROM APPS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 12:59:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dense-rank-over-partitioning/m-p/212546#M52494</guid>
      <dc:creator>SunilJ</dc:creator>
      <dc:date>2015-07-28T12:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: dense_rank over (partitioning</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/dense-rank-over-partitioning/m-p/212547#M52495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC RANK would allow you to do ranking using "dense". I've never used "decode()" and just looked it up in the Oracle documentation. From what I understand this would require some post processing of the result returned by PROC RANK (so an additional PROC SQL/Data Step on the output of the PROC RANK procedure via an additional pass through the data).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 13:11:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/dense-rank-over-partitioning/m-p/212547#M52495</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2015-07-28T13:11:59Z</dc:date>
    </item>
  </channel>
</rss>

