<?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: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254528#M48559</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;:&amp;nbsp;I remember the "dark ages" when I would have preferred a non-SQL solution, too, as I would have felt less confident to adapt and maintain such "advanced" code.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2016 16:45:26 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-03-04T16:45:26Z</dc:date>
    <item>
      <title>Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254498#M48549</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ID &amp;nbsp; var1 &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; y&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; z&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; z&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; x&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; h&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; h&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, I want it to be like either&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;ID &amp;nbsp; var1 &amp;nbsp; var1_count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count_of_x&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; h &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; a &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or this form will also work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID &amp;nbsp; &amp;nbsp;var1_count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;count_of_x&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254498#M48549</guid>
      <dc:creator>kksss</dc:creator>
      <dc:date>2016-03-04T15:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254508#M48552</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Create test data */
data have;
input ID var1 $;
cards;
1 x 
1 y
1 z
1 x
2 z
2 x
3 h
3 x
3 a
;

/* Long form */
data want;
do until(last.id);
  set have;
  by id;
  var1_count=sum(var1_count, 1); 
  count_of_x=sum(count_of_x, var1='x');
end;
do until(last.id);
  set have;
  by id;
  output;
end;
run;

proc print data=want noobs;
run;

/* Aggregated form */
data want2;
do until(last.id);
  set have;
  by id;
  var1_count=sum(var1_count, 1); 
  count_of_x=sum(count_of_x, var1='x');
end;
drop var1;
run;

proc print data=want2 noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:19:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254508#M48552</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T16:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254524#M48557</link>
      <description>Always puzzled by requests like "...not using SQL". Shouldn't we use the most appropriate tool?&lt;BR /&gt;I think SQL in many situations are easier to code, for others to understand, in case of external RDBMS it will automatically being pushed to the source, and in SAS can be executed with multi threading (wich the data step won't).</description>
      <pubDate>Fri, 04 Mar 2016 16:36:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254524#M48557</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-04T16:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254527#M48558</link>
      <description>&lt;P&gt;well... then throw me how it can be done with proc sql, and I'll see if I like it...&lt;/P&gt;&lt;P&gt;My reason is because, I have to pass down my code to colleagues who doesn't use sql much... so it's easier for them to understand what is going on.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:39:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254527#M48558</guid>
      <dc:creator>kksss</dc:creator>
      <dc:date>2016-03-04T16:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254528#M48559</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;:&amp;nbsp;I remember the "dark ages" when I would have preferred a non-SQL solution, too, as I would have felt less confident to adapt and maintain such "advanced" code.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 16:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254528#M48559</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254552#M48567</link>
      <description>@FreelanceReinhard &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72032"&gt;@kksss&lt;/a&gt;:&lt;BR /&gt;Select id,  count (*) as count, sum(case var1 when 'x' then 1 else 0 end) as count_X&lt;BR /&gt;From have&lt;BR /&gt;Group by id;&lt;BR /&gt;&lt;BR /&gt;No 1 of my guide when to chose data step or SQL:&lt;BR /&gt;Are my task row  (data step) or column (SQL) oriented?&lt;BR /&gt;&lt;BR /&gt;I'm categorising this task as column oriented. &lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;&lt;span class="lia-unicode-emoji" title=":grinning_squinting_face:"&gt;😆&lt;/span&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:05:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254552#M48567</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-04T18:05:10Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254558#M48568</link>
      <description>&lt;P&gt;For the aggregated output dataset, of course, that's fine (I would have shortened the definition of count_X to&amp;nbsp;&lt;FONT face="courier new,courier"&gt;sum(var1='x'&lt;/FONT&gt;), though). However, to obtain the result in "long form" with PROC SQL alone, would require additional measures to ensure that the order of the observations within one ID is preserved (if this was important).&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254558#M48568</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T18:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254564#M48570</link>
      <description>&lt;P&gt;your count_of_x doesn't work. it's showing me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;id &amp;nbsp; var1 &amp;nbsp; &amp;nbsp;count of x&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;y &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;z &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp;x &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:31:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254564#M48570</guid>
      <dc:creator>kksss</dc:creator>
      <dc:date>2016-03-04T18:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254567#M48571</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/72032"&gt;@kksss﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're talking about my suggested solution, I cannot replicate&amp;nbsp;your finding. My data step for the "long form" results in:&lt;/P&gt;
&lt;PRE&gt;              var1_    count_
ID    var1    count     of_x

 1     x        2         1
 1     y        2         1
 2     z        2         1
 2     x        2         1&lt;/PRE&gt;
&lt;P&gt;as it should.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 18:38:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254567#M48571</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T18:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254612#M48587</link>
      <description>&lt;P&gt;I don't know what i did wrong but it's simply just not working like you pasted&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the var count is working fine, but the count of x is not.&amp;nbsp;&lt;/P&gt;&lt;P&gt;it's not scaning through x, but indexing the rows by id.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a screenshot of my out put.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is my code regarding to those output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data test3;&lt;BR /&gt;do until(last.student_id);&lt;BR /&gt;set test1;&lt;BR /&gt;by student_id;&lt;BR /&gt;major_count=sum(major_count, 1);&lt;BR /&gt;CSBS_count=sum(CSBS_count, Major_College="Social &amp;amp; Beh Science");&lt;BR /&gt;end;&lt;BR /&gt;do until(last.student_id);&lt;BR /&gt;set test1;&lt;BR /&gt;by student_id;&lt;BR /&gt;output;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12352i4084002E62BBED53/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;</description>
      <pubDate>Fri, 04 Mar 2016 20:51:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254612#M48587</guid>
      <dc:creator>kksss</dc:creator>
      <dc:date>2016-03-04T20:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254622#M48592</link>
      <description>&lt;P&gt;the proc sql works fine however, so i guess I can live with that.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 21:28:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254622#M48592</guid>
      <dc:creator>kksss</dc:creator>
      <dc:date>2016-03-04T21:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254623#M48593</link>
      <description>&lt;P&gt;I've tried to replicate your issue using the below test data&lt;FONT face="arial,helvetica,sans-serif"&gt;:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test1;
input student_id major_college $50.;
cards;
1 Social &amp;amp; Beh Science
1 Nondegree Seeking
1 Health
2 Social &amp;amp; Beh Science
2 Social &amp;amp; Beh Science
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The result of &lt;EM&gt;your&lt;/EM&gt; data step is:&lt;/P&gt;
&lt;PRE&gt;student_                            major_    CSBS_
   id       major_college            count    count

    1       Social &amp;amp; Beh Science       3        1
    1       Nondegree Seeking          3        1
    1       Health                     3        1
    2       Social &amp;amp; Beh Science       2        2
    2       Social &amp;amp; Beh Science       2        2&lt;/PRE&gt;
&lt;P&gt;which seems to be correct. Do you also obtain the above result with &lt;EM&gt;my&lt;/EM&gt; test data?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, we should take a closer look at &lt;EM&gt;your&lt;/EM&gt; dataset TEST1.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 21:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254623#M48593</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T21:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254635#M48598</link>
      <description>The long form violates the 2nd normal form. If one is to mix aggregates and details,  that should be done in a report - not in a permanent data store.&lt;BR /&gt;&lt;BR /&gt;The aggregation of boolean expression is quite neat and have a shorter syntax, but it's SAS specific, and maybe not that as intuitively understood.</description>
      <pubDate>Fri, 04 Mar 2016 22:17:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254635#M48598</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-04T22:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Count total IDS and distinct Values and put in two count variable Prefer not Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254638#M48600</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13674"&gt;@LinusH﻿&lt;/a&gt;: Fully agreed.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 22:29:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Count-total-IDS-and-distinct-Values-and-put-in-two-count/m-p/254638#M48600</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-03-04T22:29:12Z</dc:date>
    </item>
  </channel>
</rss>

