<?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: remove repeated data and retain the maximum value in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12593#M3141</link>
    <description>Here's one SAS programming approach using only SORT to generate the result you showed:&lt;BR /&gt;
&lt;BR /&gt;
data ;&lt;BR /&gt;
input Company $ Job $ Salary ;&lt;BR /&gt;
datalines;&lt;BR /&gt;
ABC D 50&lt;BR /&gt;
ABC D 60&lt;BR /&gt;
DEF F 70&lt;BR /&gt;
DEF G 80&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort ;&lt;BR /&gt;
  by company descending salary;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort nodupkey equals ;&lt;BR /&gt;
  by company ;&lt;BR /&gt;
run;&lt;BR /&gt;
options nocenter;&lt;BR /&gt;
proc print u noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Wed, 01 Apr 2009 15:18:55 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-01T15:18:55Z</dc:date>
    <item>
      <title>remove repeated data and retain the maximum value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12592#M3140</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Do you know the script or procedure in JMP on how to remove the repeated items and still retain the row with maximum data. ie&lt;BR /&gt;
&lt;BR /&gt;
Raw Data&lt;BR /&gt;
Company  Job  Salary &lt;BR /&gt;
ABC         D     50&lt;BR /&gt;
ABC         D     60&lt;BR /&gt;
DEF         F     70&lt;BR /&gt;
DEF         G     80&lt;BR /&gt;
&lt;BR /&gt;
Desired Output&lt;BR /&gt;
Company  Job  Salary &lt;BR /&gt;
ABC         D     60&lt;BR /&gt;
DEF         G     80&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Phil</description>
      <pubDate>Sun, 29 Mar 2009 00:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12592#M3140</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-03-29T00:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: remove repeated data and retain the maximum value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12593#M3141</link>
      <description>Here's one SAS programming approach using only SORT to generate the result you showed:&lt;BR /&gt;
&lt;BR /&gt;
data ;&lt;BR /&gt;
input Company $ Job $ Salary ;&lt;BR /&gt;
datalines;&lt;BR /&gt;
ABC D 50&lt;BR /&gt;
ABC D 60&lt;BR /&gt;
DEF F 70&lt;BR /&gt;
DEF G 80&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort ;&lt;BR /&gt;
  by company descending salary;&lt;BR /&gt;
run;&lt;BR /&gt;
proc sort nodupkey equals ;&lt;BR /&gt;
  by company ;&lt;BR /&gt;
run;&lt;BR /&gt;
options nocenter;&lt;BR /&gt;
proc print u noobs;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Wed, 01 Apr 2009 15:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12593#M3141</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-01T15:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: remove repeated data and retain the maximum value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12594#M3142</link>
      <description>Hi Scott,&lt;BR /&gt;
&lt;BR /&gt;
Good Answer.&lt;BR /&gt;
I've a small Question.&lt;BR /&gt;
Actually in Proc Sort what is the functionality of "Equals","Noequals".&lt;BR /&gt;
In which conditions we need to use those options?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Alankar</description>
      <pubDate>Fri, 03 Apr 2009 02:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12594#M3142</guid>
      <dc:creator>Alankar</dc:creator>
      <dc:date>2009-04-03T02:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: remove repeated data and retain the maximum value</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12595#M3143</link>
      <description>Hi:&lt;BR /&gt;
  The documentation talks about it in great detail:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146878.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a000146878.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
in short: &lt;BR /&gt;
 EQUALS:  Maintain relative order within BY groups&lt;BR /&gt;
 NOEQUALS: Do not maintain relative order within BY groups&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 03 Apr 2009 04:16:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/remove-repeated-data-and-retain-the-maximum-value/m-p/12595#M3143</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-04-03T04:16:03Z</dc:date>
    </item>
  </channel>
</rss>

