<?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 combining sets of observations by name in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261731#M50978</link>
    <description>&lt;P&gt;Hi All, I have the following dataset; What I am trying to doe is to combine the total frequency by name. Some of the names are composed of two words with a space in the middle.&amp;nbsp;&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;med_code freq  name 
0001 50   ar
222  3     ar 
444 3     ar 
555  2   al as
666 1   al as 



Here is the output I am looking to get

ar      56
al as  3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2016 14:23:47 GMT</pubDate>
    <dc:creator>lillymaginta</dc:creator>
    <dc:date>2016-04-06T14:23:47Z</dc:date>
    <item>
      <title>combining sets of observations by name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261731#M50978</link>
      <description>&lt;P&gt;Hi All, I have the following dataset; What I am trying to doe is to combine the total frequency by name. Some of the names are composed of two words with a space in the middle.&amp;nbsp;&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;med_code freq  name 
0001 50   ar
222  3     ar 
444 3     ar 
555  2   al as
666 1   al as 



Here is the output I am looking to get

ar      56
al as  3&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261731#M50978</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-04-06T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: combining sets of observations by name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261736#M50980</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table want as
select name,sum(freq)
from have
group by name;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261736#M50980</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-06T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: combining sets of observations by name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261737#M50981</link>
      <description>Simple SQL w sum() and group by.</description>
      <pubDate>Wed, 06 Apr 2016 14:28:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261737#M50981</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-04-06T14:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: combining sets of observations by name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261743#M50985</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 14:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261743#M50985</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-04-06T14:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: combining sets of observations by name</title>
      <link>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261745#M50986</link>
      <description>Thank you!</description>
      <pubDate>Wed, 06 Apr 2016 14:34:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/combining-sets-of-observations-by-name/m-p/261745#M50986</guid>
      <dc:creator>lillymaginta</dc:creator>
      <dc:date>2016-04-06T14:34:29Z</dc:date>
    </item>
  </channel>
</rss>

