<?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: 3rd highest value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128173#M260371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc Rank seems handy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc rank data=sashelp.class out=want(where=(rank=3)) descending ties=dense;&lt;/P&gt;&lt;P&gt;var age;&lt;/P&gt;&lt;P&gt;ranks rank;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Oct 2013 04:25:21 GMT</pubDate>
    <dc:creator>Haikuo</dc:creator>
    <dc:date>2013-10-30T04:25:21Z</dc:date>
    <item>
      <title>3rd highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128170#M260368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I find the 3rd highest(all ways) value in a dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 03:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128170#M260368</guid>
      <dc:creator>AnandSahu</dc:creator>
      <dc:date>2013-10-30T03:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128171#M260369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1684" data-externalid="" data-presence="null" data-userid="817868" data-username="AnandSahu" href="https://communities.sas.com/people/AnandSahu" id="jive-8178683327919695102786"&gt;AnandSahu&lt;/A&gt;, &lt;/STRONG&gt;Below is the example of finding nth highest salary from given input using Proc SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data salary;&lt;/P&gt;&lt;P&gt;input sal;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;23&lt;/P&gt;&lt;P&gt;12&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;45&lt;/P&gt;&lt;P&gt;0&lt;/P&gt;&lt;P&gt;54&lt;/P&gt;&lt;P&gt;-21&lt;/P&gt;&lt;P&gt;43&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let N=3;&lt;BR /&gt;proc sql;&lt;BR /&gt;select a.sal from salary a where &amp;amp;N= (select count(distinct sal) from salary b where a.sal&amp;lt;=b.sal);&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tushar J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 04:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128171#M260369</guid>
      <dc:creator>Tushar</dc:creator>
      <dc:date>2013-10-30T04:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128172#M260370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you already searched the communities here. Similar questions have already been asked and answered multiple times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 04:13:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128172#M260370</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2013-10-30T04:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128173#M260371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Proc Rank seems handy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc rank data=sashelp.class out=want(where=(rank=3)) descending ties=dense;&lt;/P&gt;&lt;P&gt;var age;&lt;/P&gt;&lt;P&gt;ranks rank;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Oct 2013 04:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/128173#M260371</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2013-10-30T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: 3rd highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/515525#M260372</link>
      <description>&lt;P&gt;this doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: The data set WORK.WANT has 0 observations and 6 variables.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 11:42:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/3rd-highest-value/m-p/515525#M260372</guid>
      <dc:creator>Rahul_SAS</dc:creator>
      <dc:date>2018-11-23T11:42:20Z</dc:date>
    </item>
  </channel>
</rss>

