<?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: sas query how to find the n highest number in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315395#M68782</link>
    <description>&lt;P&gt;Please try the proc univariate which will displays the 5 lowest and 5 highest value observation. in that the first lowest and last highest represent the lowest and highest values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input HighPrice;
cards;
568.45
571
604.3
619.35
612.7
629
651
650.7
652
678.9
689.9
665
664.4
666.8
627.5
619.4
627.25
650.8
663.95
642
631.9
;

proc univariate data=have;
var highprice;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2016 03:32:22 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2016-11-30T03:32:22Z</dc:date>
    <item>
      <title>sas query how to find the n highest number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315393#M68781</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have huge data with variable name HighPrice. How can i find highest and lowest number from the data. Have data like given below&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE border="0" cellspacing="0" cellpadding="0"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;HighPrice&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;568.45&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;571&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;604.3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;619.35&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;612.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;629&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;651&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;650.7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;652&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;678.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;689.9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;665&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;664.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;666.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;627.5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;619.4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;627.25&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;650.8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;663.95&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;642&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;631.9&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 30 Nov 2016 03:20:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315393#M68781</guid>
      <dc:creator>Talwinder</dc:creator>
      <dc:date>2016-11-30T03:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: sas query how to find the n highest number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315395#M68782</link>
      <description>&lt;P&gt;Please try the proc univariate which will displays the 5 lowest and 5 highest value observation. in that the first lowest and last highest represent the lowest and highest values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input HighPrice;
cards;
568.45
571
604.3
619.35
612.7
629
651
650.7
652
678.9
689.9
665
664.4
666.8
627.5
619.4
627.25
650.8
663.95
642
631.9
;

proc univariate data=have;
var highprice;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 03:32:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315395#M68782</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-30T03:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: sas query how to find the n highest number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315397#M68783</link>
      <description>Even through proc sql also you could get result &lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select min(highprice), max(highprice) into:min, :max from have;&lt;BR /&gt;quit;&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Nov 2016 03:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315397#M68783</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2016-11-30T03:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: sas query how to find the n highest number</title>
      <link>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315545#M68862</link>
      <description>&lt;P&gt;Many procedures available: proc means or summary, Proc Report or Proc Tabulate if want to make pretty output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc means data=have max min;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; var highprice;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2016 15:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/sas-query-how-to-find-the-n-highest-number/m-p/315545#M68862</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-30T15:02:07Z</dc:date>
    </item>
  </channel>
</rss>

