<?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 MAX function by variable in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/MAX-function-by-variable/m-p/38472#M4667</link>
    <description>I am looking to use the MAX function, but I want it to find the MAX by different variable groupings.  How do I do this?</description>
    <pubDate>Tue, 12 Aug 2008 18:07:49 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-12T18:07:49Z</dc:date>
    <item>
      <title>MAX function by variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/MAX-function-by-variable/m-p/38472#M4667</link>
      <description>I am looking to use the MAX function, but I want it to find the MAX by different variable groupings.  How do I do this?</description>
      <pubDate>Tue, 12 Aug 2008 18:07:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/MAX-function-by-variable/m-p/38472#M4667</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-12T18:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: MAX function by variable</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/MAX-function-by-variable/m-p/38473#M4668</link>
      <description>You can try something like this:&lt;BR /&gt;
&lt;BR /&gt;
PROC SUMMARY DATA=my_data NWAY;&lt;BR /&gt;
 CLASS by_var1 byvar2;&lt;BR /&gt;
 OUTPUT OUT=my_output MAX(var1 var2 var3)=var1 var2 var3;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
(there is also the option maxid to preserve some id variable (eg: names, data, time, etc...))&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Jaroslav

Message was edited by: Jaroslav</description>
      <pubDate>Wed, 13 Aug 2008 06:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/MAX-function-by-variable/m-p/38473#M4668</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-13T06:54:11Z</dc:date>
    </item>
  </channel>
</rss>

