<?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 How to get max value off 3 coln in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450489#M69713</link>
    <description>I have a dataset with 3 col I would need max here is example&lt;BR /&gt;Id. amt. Load. Date&lt;BR /&gt;23. 500. 100. 01/01/2018&lt;BR /&gt;23. 700. 100. 02/01/2018&lt;BR /&gt;23. 400. 100. 03/012018&lt;BR /&gt;30. 450. 20. 03/20/2018&lt;BR /&gt;30. 650. 20. 02/01/2018&lt;BR /&gt;30. 300. 20. 07/29/2018&lt;BR /&gt;&lt;BR /&gt;What I need as output&lt;BR /&gt;Id. amt. Load. Date&lt;BR /&gt;23. 700. 100. 02/01/2018&lt;BR /&gt;30. 650. 20. 02/01/2018&lt;BR /&gt;&lt;BR /&gt;This is the max of amt&lt;BR /&gt;I used&lt;BR /&gt;proc sql;&lt;BR /&gt;Create table report1 as&lt;BR /&gt;Select id as id,&lt;BR /&gt;Max(amt) as amt,&lt;BR /&gt;Load,&lt;BR /&gt;Max(date) as day&lt;BR /&gt;From report2&lt;BR /&gt;Group by dnd;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Apr 2018 23:05:47 GMT</pubDate>
    <dc:creator>Gil_</dc:creator>
    <dc:date>2018-04-02T23:05:47Z</dc:date>
    <item>
      <title>How to get max value off 3 coln</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450489#M69713</link>
      <description>I have a dataset with 3 col I would need max here is example&lt;BR /&gt;Id. amt. Load. Date&lt;BR /&gt;23. 500. 100. 01/01/2018&lt;BR /&gt;23. 700. 100. 02/01/2018&lt;BR /&gt;23. 400. 100. 03/012018&lt;BR /&gt;30. 450. 20. 03/20/2018&lt;BR /&gt;30. 650. 20. 02/01/2018&lt;BR /&gt;30. 300. 20. 07/29/2018&lt;BR /&gt;&lt;BR /&gt;What I need as output&lt;BR /&gt;Id. amt. Load. Date&lt;BR /&gt;23. 700. 100. 02/01/2018&lt;BR /&gt;30. 650. 20. 02/01/2018&lt;BR /&gt;&lt;BR /&gt;This is the max of amt&lt;BR /&gt;I used&lt;BR /&gt;proc sql;&lt;BR /&gt;Create table report1 as&lt;BR /&gt;Select id as id,&lt;BR /&gt;Max(amt) as amt,&lt;BR /&gt;Load,&lt;BR /&gt;Max(date) as day&lt;BR /&gt;From report2&lt;BR /&gt;Group by dnd;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2018 23:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450489#M69713</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2018-04-02T23:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value off 3 coln</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450499#M69714</link>
      <description>&lt;P&gt;Here's a set of tools worth learning, so you are not forced to get SQL to do this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sort data=have;&lt;/P&gt;
&lt;P&gt;by id amt;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;set have;&lt;/P&gt;
&lt;P&gt;by id;&lt;/P&gt;
&lt;P&gt;if last.id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It doesn't matter if some of this is new to you.&amp;nbsp; These are tools you will use every week ... "must learn".&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 00:01:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450499#M69714</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-04-03T00:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to get max value off 3 coln</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450593#M69718</link>
      <description>&lt;P&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Create table report1 as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Select *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From report2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Group by dnd&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;having amt=max(amt);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 12:30:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-get-max-value-off-3-coln/m-p/450593#M69718</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-04-03T12:30:26Z</dc:date>
    </item>
  </channel>
</rss>

