<?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 Quick way to choose max value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258634#M49863</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id &amp;nbsp; d1 &amp;nbsp; d2 &amp;nbsp;d3 &amp;nbsp;d4 &amp;nbsp;.......................d100&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each id have mutiple rows, with mutiple values of d1, d2......&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to choose the max(d1), max(d2)...., &amp;nbsp;for each ID .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any quick way to do it without list all of the vairables from d1 to d100 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 21:09:19 GMT</pubDate>
    <dc:creator>Ivy</dc:creator>
    <dc:date>2016-03-23T21:09:19Z</dc:date>
    <item>
      <title>Quick way to choose max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258634#M49863</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a data set like this :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id &amp;nbsp; d1 &amp;nbsp; d2 &amp;nbsp;d3 &amp;nbsp;d4 &amp;nbsp;.......................d100&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Each id have mutiple rows, with mutiple values of d1, d2......&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to choose the max(d1), max(d2)...., &amp;nbsp;for each ID .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any quick way to do it without list all of the vairables from d1 to d100 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ivy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 21:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258634#M49863</guid>
      <dc:creator>Ivy</dc:creator>
      <dc:date>2016-03-23T21:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quick way to choose max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258640#M49865</link>
      <description>&lt;P&gt;Depends on what you want your output to look like. If your variables are sequential you can list them like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=havenoprint;
by id; *need to sort by ID first;
var d1-d100;
output out=want max= /autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 23 Mar 2016 21:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258640#M49865</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-23T21:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Quick way to choose max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258656#M49869</link>
      <description>&lt;P&gt;Is it the flu or something, every second question has data with wide data sets.&lt;/P&gt;
&lt;P&gt;Transpose&amp;nbsp;it to long, then you can easily calculate/aggregate the data any way you want, and just need to refer to your analysis variable only once in your code.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 22:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258656#M49869</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-23T22:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quick way to choose max value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258715#M49892</link>
      <description>&lt;P&gt;Spring migration, from Excel to SAS&amp;nbsp;&lt;img id="manvery-happy" class="emoticon emoticon-manvery-happy" src="https://communities.sas.com/i/smilies/16x16_man-very-happy.png" alt="Man Very Happy" title="Man Very Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 02:51:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Quick-way-to-choose-max-value/m-p/258715#M49892</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-24T02:51:55Z</dc:date>
    </item>
  </channel>
</rss>

