<?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: Group By in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216482#M53296</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't explain your question yet .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data test;&amp;nbsp; 
input acc $ sub accs $ @@;
cards;&amp;nbsp; 
a 1 d&amp;nbsp; a 2 d&amp;nbsp; a . a&amp;nbsp; a . d&amp;nbsp; b 3 a&amp;nbsp; b 4 d&amp;nbsp; c . a&amp;nbsp; d . a 
;
run;

 
proc sql;
&amp;nbsp; select * from test where sub is&amp;nbsp; null group by acc having count(*) eq 1&amp;nbsp; ;
&amp;nbsp; quit;

&lt;/PRE&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;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Apr 2015 07:48:16 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2015-04-06T07:48:16Z</dc:date>
    <item>
      <title>Group By</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216481#M53295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data have;&amp;nbsp; input acc$ sub accs$&amp;nbsp; ;&amp;nbsp; cards;&amp;nbsp; a 1 d&amp;nbsp; a 2 d&amp;nbsp; a . a&amp;nbsp; a . d&amp;nbsp; b 3 a&amp;nbsp; b 4 d&amp;nbsp; c . a&amp;nbsp; d . a ; run;&lt;/P&gt;&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;c . a;&lt;/P&gt;&lt;P&gt;d .a;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select count(acc),acc from test where sub is&amp;nbsp; null group by acc ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 07:18:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216481#M53295</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2015-04-06T07:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Group By</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216482#M53296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't explain your question yet .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;data test;&amp;nbsp; 
input acc $ sub accs $ @@;
cards;&amp;nbsp; 
a 1 d&amp;nbsp; a 2 d&amp;nbsp; a . a&amp;nbsp; a . d&amp;nbsp; b 3 a&amp;nbsp; b 4 d&amp;nbsp; c . a&amp;nbsp; d . a 
;
run;

 
proc sql;
&amp;nbsp; select * from test where sub is&amp;nbsp; null group by acc having count(*) eq 1&amp;nbsp; ;
&amp;nbsp; quit;

&lt;/PRE&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;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 07:48:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216482#M53296</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-04-06T07:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Group By</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216483#M53297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;got it by my own ....thanks for your effort &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2015 10:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Group-By/m-p/216483#M53297</guid>
      <dc:creator>LearnByMistk</dc:creator>
      <dc:date>2015-04-06T10:15:30Z</dc:date>
    </item>
  </channel>
</rss>

