<?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 Help with SAS Code in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61836#M2896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿﻿﻿﻿﻿Hi, have get stuck in a thing with SAS. I should compare 4 different companys income during a period in three country in different county.In the table i only want to pick the company with highest total income for each county in every country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country.........County........Company.......Income&lt;/P&gt;&lt;P&gt;﻿﻿Country1.......Countyx......Compay1.......45000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......................................Company2.....45600&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;......................................Company3.....30566&lt;/P&gt;&lt;P&gt;......................................Company4.....38000&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Country3.....Countyz......Company1......360000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;....................................Company2......500000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;....................................Company3......32100&lt;/P&gt;&lt;P&gt;....................................Company4......200000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That i want is to only get the bold lines in a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Sep 2011 11:49:26 GMT</pubDate>
    <dc:creator>delarge</dc:creator>
    <dc:date>2011-09-08T11:49:26Z</dc:date>
    <item>
      <title>Help with SAS Code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61836#M2896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;﻿﻿﻿﻿﻿Hi, have get stuck in a thing with SAS. I should compare 4 different companys income during a period in three country in different county.In the table i only want to pick the company with highest total income for each county in every country.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Country.........County........Company.......Income&lt;/P&gt;&lt;P&gt;﻿﻿Country1.......Countyx......Compay1.......45000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;......................................Company2.....45600&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;......................................Company3.....30566&lt;/P&gt;&lt;P&gt;......................................Company4.....38000&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Country3.....Countyz......Company1......360000&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;....................................Company2......500000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;....................................Company3......32100&lt;/P&gt;&lt;P&gt;....................................Company4......200000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That i want is to only get the bold lines in a table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 11:49:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61836#M2896</guid>
      <dc:creator>delarge</dc:creator>
      <dc:date>2011-09-08T11:49:26Z</dc:date>
    </item>
    <item>
      <title>Help with SAS Code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61837#M2897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can sort the tables in descending income order then, in a data step, include a by desceding income and include an if first.income statement.&amp;nbsp; Or, you could use proc sql and use a where income eq max(income( statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61837#M2897</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-09-08T12:03:56Z</dc:date>
    </item>
    <item>
      <title>Help with SAS Code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61838#M2898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 12:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61838#M2898</guid>
      <dc:creator>delarge</dc:creator>
      <dc:date>2011-09-08T12:33:13Z</dc:date>
    </item>
    <item>
      <title>Help with SAS Code</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61839#M2899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nodupkey option of proc sort will keep the first obs.&lt;/P&gt;&lt;P&gt;So if you have already sort your data as you want. then you will get the max obs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data class;&lt;/P&gt;&lt;P&gt; set sashelp.class;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=class ;&lt;/P&gt;&lt;P&gt; by sex decending weight;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sort data=class out=cl nodupkey ;&lt;/P&gt;&lt;P&gt; by sex;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2011 03:09:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Help-with-SAS-Code/m-p/61839#M2899</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-09-09T03:09:47Z</dc:date>
    </item>
  </channel>
</rss>

