<?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: How to get the 4th and 6th Highest Transaction for each ID and the difference in these transacti in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563476#M157978</link>
    <description>&lt;P&gt;Have both of you gotten the same homework:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563471" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563471&lt;/A&gt;?&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 09:30:18 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-06-04T09:30:18Z</dc:date>
    <item>
      <title>How to get the 4th and 6th Highest Transaction for each ID and the difference in these transactions</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563473#M157975</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Hi All,

 

I am new to SAS, want to know how I can get the difference between the 4th highest and 6th highest transaction of each ID

 

 

Sample Data: 

data a;
input id transaction;
cards;
1 200
1 300
1 100
1 500
1 600
1 400
1 700
2 300
2 200
2 300
2 400
2 500
2 800
2 900
2 350
3 200
3 150
3 100
3 50
3 400
3 600
3 900
3 450
3 90
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 09:13:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563473#M157975</guid>
      <dc:creator>Sarabjeet_</dc:creator>
      <dc:date>2019-06-04T09:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the 4th and 6th Highest Transaction for each ID and the difference in these transacti</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563476#M157978</link>
      <description>&lt;P&gt;Have both of you gotten the same homework:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563471" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563471&lt;/A&gt;?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 09:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-get-the-4th-and-6th-Highest-Transaction-for-each-ID-and/m-p/563476#M157978</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-06-04T09:30:18Z</dc:date>
    </item>
  </channel>
</rss>

