<?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: proc summary issue in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-summary-issue/m-p/29109#M6812</link>
    <description>I'm not sure, but I don't think that summary offers the count distinct construct.&lt;BR /&gt;
So an advice is to go for proc sql instead where this can easily ca be achieved.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
    <pubDate>Fri, 08 May 2009 06:32:50 GMT</pubDate>
    <dc:creator>LinusH</dc:creator>
    <dc:date>2009-05-08T06:32:50Z</dc:date>
    <item>
      <title>proc summary issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-summary-issue/m-p/29108#M6811</link>
      <description>Hello All&lt;BR /&gt;
I am using the following code to generate a count meaning for each Plan there are 1 or more Households attached and for each household there are 1 or more accounts attached to it.&lt;BR /&gt;
&lt;BR /&gt;
The following proc summary is iving me the same count for all the 3 variables - plans, households and accounts.&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Question&lt;/B&gt;&lt;BR /&gt;
Since N in the code signifies count - How would I be able to use a count-distinct for just the plans and a normal count for the remaining 2 variables?&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Code&lt;/B&gt;&lt;BR /&gt;
proc summary data = workpks.temp13 N;&lt;BR /&gt;
	var Plan&lt;BR /&gt;
	     Household&lt;BR /&gt;
	     Account&lt;BR /&gt;
		;&lt;BR /&gt;
	class RSPNSBY_CNTR_ID;&lt;BR /&gt;
	output out = workpks.temp13_smry N= Plan Household 	Account;&lt;BR /&gt;
run; &lt;BR /&gt;
&lt;BR /&gt;
Thanks for all your help.&lt;BR /&gt;
&lt;BR /&gt;
Pappu.</description>
      <pubDate>Thu, 07 May 2009 18:26:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-summary-issue/m-p/29108#M6811</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-07T18:26:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc summary issue</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-summary-issue/m-p/29109#M6812</link>
      <description>I'm not sure, but I don't think that summary offers the count distinct construct.&lt;BR /&gt;
So an advice is to go for proc sql instead where this can easily ca be achieved.&lt;BR /&gt;
&lt;BR /&gt;
/Linus</description>
      <pubDate>Fri, 08 May 2009 06:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-summary-issue/m-p/29109#M6812</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2009-05-08T06:32:50Z</dc:date>
    </item>
  </channel>
</rss>

