<?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 Proc sql finding maximum values in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246587#M46156</link>
    <description>&lt;P&gt;data have;&lt;BR /&gt;input id sal;&lt;BR /&gt;cards;&lt;BR /&gt;101 1000&lt;BR /&gt;102 2000&lt;BR /&gt;103 1000&lt;BR /&gt;104 3000&lt;BR /&gt;105 3000&lt;BR /&gt;106 4000&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;How would i find 3rd max sal from above data using sql ??&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 11:42:44 GMT</pubDate>
    <dc:creator>vandhan</dc:creator>
    <dc:date>2016-01-28T11:42:44Z</dc:date>
    <item>
      <title>Proc sql finding maximum values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246587#M46156</link>
      <description>&lt;P&gt;data have;&lt;BR /&gt;input id sal;&lt;BR /&gt;cards;&lt;BR /&gt;101 1000&lt;BR /&gt;102 2000&lt;BR /&gt;103 1000&lt;BR /&gt;104 3000&lt;BR /&gt;105 3000&lt;BR /&gt;106 4000&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;How would i find 3rd max sal from above data using sql ??&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:42:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246587#M46156</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2016-01-28T11:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql finding maximum values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246589#M46157</link>
      <description>&lt;P&gt;It is simpler to use a datastep here:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input id sal;
cards;
101 1000
102 2000
103 1000
104 3000
105 3000
106 4000
;
run;

proc sort data=have;
  by sal;
run;

data want;
  set have;
  if _n_=3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jan 2016 11:48:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246589#M46157</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-28T11:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql finding maximum values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246590#M46158</link>
      <description>if i have max values 6 values like 4000 ... in that case this is not&lt;BR /&gt;possible...&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Thu, 28 Jan 2016 11:51:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246590#M46158</guid>
      <dc:creator>vandhan</dc:creator>
      <dc:date>2016-01-28T11:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql finding maximum values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246601#M46163</link>
      <description>&lt;P&gt;Hey, stop posting the same question in different forums, pls.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 12:46:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246601#M46163</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-01-28T12:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc sql finding maximum values</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246606#M46165</link>
      <description>&lt;P&gt;Indeed, other post here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/General-SAS-Programming/proc-sql/m-p/246594" target="_blank"&gt;https://communities.sas.com/t5/General-SAS-Programming/proc-sql/m-p/246594&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Close this one.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 12:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-sql-finding-maximum-values/m-p/246606#M46165</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-01-28T12:54:45Z</dc:date>
    </item>
  </channel>
</rss>

