<?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: Need help to rank the data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393442#M94742</link>
    <description>&lt;P&gt;A look-ahead seems to be the method to solve the problem. Explained here: &lt;A href="http://support.sas.com/resources/papers/proceedings10/103-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/103-2010.pdf&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2017 07:07:20 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2017-09-06T07:07:20Z</dc:date>
    <item>
      <title>Need help to rank the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393429#M94731</link>
      <description>&lt;P&gt;&amp;nbsp;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to rank my data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;id var1 var2 var3&lt;/P&gt;
&lt;P&gt;1 10 &amp;nbsp; &amp;nbsp; &amp;nbsp;5 &amp;nbsp; &amp;nbsp; &amp;nbsp;24&lt;/P&gt;
&lt;P&gt;2 20 &amp;nbsp; &amp;nbsp; &amp;nbsp;7 &amp;nbsp; &amp;nbsp; &amp;nbsp;32&lt;/P&gt;
&lt;P&gt;3 30 &amp;nbsp; &amp;nbsp; &amp;nbsp;20 &amp;nbsp; &amp;nbsp; 62&lt;/P&gt;
&lt;P&gt;4 30 &amp;nbsp; &amp;nbsp; &amp;nbsp;30 &amp;nbsp; &amp;nbsp;98&lt;/P&gt;
&lt;P&gt;5 30 &amp;nbsp; &amp;nbsp; &amp;nbsp;30 &amp;nbsp; &amp;nbsp;63&lt;/P&gt;
&lt;P&gt;6 40 &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 &amp;nbsp; &amp;nbsp;21&lt;/P&gt;
&lt;P&gt;7 40 &amp;nbsp; &amp;nbsp; &amp;nbsp; 75 &amp;nbsp; &amp;nbsp;33&lt;/P&gt;
&lt;P&gt;8 50 &amp;nbsp; &amp;nbsp; &amp;nbsp;60 &amp;nbsp; &amp;nbsp; 90&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My challage is : I need to rank the data base on priotize variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example first priority variable is var1 &amp;nbsp;but if var1 is duplicate then need to check var2 if var2 also duplicate then need to check var3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;priority level is var1 then var2 then var3&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i would be very thankful for ur help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 05:41:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393429#M94731</guid>
      <dc:creator>Aman4SAS</dc:creator>
      <dc:date>2017-09-06T05:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to rank the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393438#M94738</link>
      <description>&lt;P&gt;What does your desired output look like?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 06:37:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393438#M94738</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-06T06:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to rank the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393441#M94741</link>
      <description>Isn't that what proc sort .. by var1 var2 var3 is doing?</description>
      <pubDate>Wed, 06 Sep 2017 07:04:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393441#M94741</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2017-09-06T07:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to rank the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393442#M94742</link>
      <description>&lt;P&gt;A look-ahead seems to be the method to solve the problem. Explained here: &lt;A href="http://support.sas.com/resources/papers/proceedings10/103-2010.pdf" target="_blank"&gt;http://support.sas.com/resources/papers/proceedings10/103-2010.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 07:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393442#M94742</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2017-09-06T07:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to rank the data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393443#M94743</link>
      <description>&lt;P&gt;If that is the case then do&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&lt;BR /&gt;data have;
input id var1 var2 var3;
datalines;
1 10 5  24
2 20 7  32
3 30 20 62
4 30 30 98
5 30 30 63
6 40 45 21
7 40 75 33
8 50 60 90
;

proc sort data=have;
	by var1-var3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2017 07:09:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-help-to-rank-the-data/m-p/393443#M94743</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2017-09-06T07:09:12Z</dc:date>
    </item>
  </channel>
</rss>

