<?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 print the highest value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595750#M171464</link>
    <description>&lt;P&gt;See this code for doing something similar off seashell.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from sashelp.class
group by sex
having weight=max(weight)
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 11 Oct 2019 14:34:12 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-10-11T14:34:12Z</dc:date>
    <item>
      <title>how to print the highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595747#M171462</link>
      <description>&lt;P&gt;Hi, I'm new to SAS and I'm struggling with this homework problem below. Any help is greatly appreciated! Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For each department find the employee whose salary01 is the highest in the department. Print the names of these employees and department names.&lt;PRE&gt;         Employee_id   Name gender   years   dept     salary01 salary02  salary03;
		 
                 1 Mitchell, Jane A  f    6     shoe     22,450  23,000  26,600
		 2 Miller, Frances T  f  8  appliance      .     32,500  33,000
		 3 Evans, Richard A  m   9  appliance    42,900  43,900  .
		 4 Fair, Suzanne K  f    3  clothing     29,700  32,900 34,500
		 5 Meyers, Thomas D  m  5  appliance     33,700  34,400  37,000
		 6 Rogers, Steven F  m  3    shoe         27,000  27,800  .
		 7 Anderson, Frank F  m  5  clothing      33,000  35,100  36,000
		10 Baxter, David T  m  2     shoe         23,900    .    31,300
		11 Wood, Brenda L  f  3     clothing      33,000  34,000  35,700
		12 Wheeler, Vickie M  f  7  appliance     31,500  33,200  35,600
		13 Hancock, Sharon T  f  1  clothing      21,000   .     22,500
		14 Looney, Roger M    m  10 appliance     42,900 36,200 37,800
		15 Fry, Marie E     f    6  clothing      29,700 30,500 31,200&lt;/PRE&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:30:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595747#M171462</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-10-11T14:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595750#M171464</link>
      <description>&lt;P&gt;See this code for doing something similar off seashell.class:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
select *
from sashelp.class
group by sex
having weight=max(weight)
;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595750#M171464</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-10-11T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595751#M171465</link>
      <description>&lt;P&gt;Sort the data by dept and salary, then (since this puts the highest salary01 in the last record of each department) and then select the last record via:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    set have;
    by dept;
    if last.dept;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595751#M171465</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-11T14:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595756#M171468</link>
      <description>&lt;P&gt;I suspect you're expected to use the techniques taught in class and there are many many ways to do this one.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_univariate_examples03.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/procstat/66703/HTML/default/viewer.htm#procstat_univariate_examples03.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265801"&gt;@Amy0223&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi, I'm new to SAS and I'm struggling with this homework problem below. Any help is greatly appreciated! Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;For each department find the employee whose salary01 is the highest in the department. Print the names of these employees and department names.
&lt;PRE&gt;         Employee_id   Name gender   years   dept     salary01 salary02  salary03;
		 
                 1 Mitchell, Jane A  f    6     shoe     22,450  23,000  26,600
		 2 Miller, Frances T  f  8  appliance      .     32,500  33,000
		 3 Evans, Richard A  m   9  appliance    42,900  43,900  .
		 4 Fair, Suzanne K  f    3  clothing     29,700  32,900 34,500
		 5 Meyers, Thomas D  m  5  appliance     33,700  34,400  37,000
		 6 Rogers, Steven F  m  3    shoe         27,000  27,800  .
		 7 Anderson, Frank F  m  5  clothing      33,000  35,100  36,000
		10 Baxter, David T  m  2     shoe         23,900    .    31,300
		11 Wood, Brenda L  f  3     clothing      33,000  34,000  35,700
		12 Wheeler, Vickie M  f  7  appliance     31,500  33,200  35,600
		13 Hancock, Sharon T  f  1  clothing      21,000   .     22,500
		14 Looney, Roger M    m  10 appliance     42,900 36,200 37,800
		15 Fry, Marie E     f    6  clothing      29,700 30,500 31,200&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2019 14:49:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595756#M171468</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-10-11T14:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to print the highest value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595760#M171472</link>
      <description>Thank you very much for the link.</description>
      <pubDate>Fri, 11 Oct 2019 14:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-print-the-highest-value/m-p/595760#M171472</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-10-11T14:53:34Z</dc:date>
    </item>
  </channel>
</rss>

