<?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: Counting in PROC REPORT in All Things Community</title>
    <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567623#M3944</link>
    <description>&lt;P&gt;That was supposed to do .&lt;/P&gt;
&lt;P&gt;What do you want ? Post your output .&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 14:13:41 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-06-20T14:13:41Z</dc:date>
    <item>
      <title>Counting in PROC REPORT</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567557#M3941</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I count for each variable in PROC REPORT porcedure? I have tried n, proc means&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so, here is my final dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x1. &amp;nbsp; x2 &amp;nbsp; &amp;nbsp;x3. &amp;nbsp; x4&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0. &amp;nbsp; &amp;nbsp;1. &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;0. &amp;nbsp; &amp;nbsp; &amp;nbsp;0. &amp;nbsp; &amp;nbsp;1. &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp;1. &amp;nbsp; &amp;nbsp;0. &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp;0. &amp;nbsp; &amp;nbsp;0. &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;1. &amp;nbsp; &amp;nbsp; &amp;nbsp;0. &amp;nbsp; &amp;nbsp; 0. &amp;nbsp; &amp;nbsp;0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to count how many ones for each variable. and produce the proc report as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x1. &amp;nbsp; x2. &amp;nbsp;x3. &amp;nbsp;x4&lt;/P&gt;&lt;P&gt;n. &amp;nbsp; &amp;nbsp; 4. &amp;nbsp; &amp;nbsp; 1. &amp;nbsp; &amp;nbsp;2. &amp;nbsp; &amp;nbsp;3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 08:55:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567557#M3941</guid>
      <dc:creator>sharuu_00</dc:creator>
      <dc:date>2019-06-20T08:55:24Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in PROC REPORT</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567594#M3942</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input x1   x2    x3   x4;
cards;
1       0.    1.     1
0.      0.    1.     1
1.      1.    0.     1
1.      0.    0.     0
1.      0.     0.    0
;

proc report data=have nowd;
column  x x1 x2 x3 x4;
define x/computed ' ';
define x1/analysis sum;
define x2/analysis sum;
define x3/analysis sum;
define x4/analysis sum;
compute x/character length=2;
x='n';
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 20 Jun 2019 12:50:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567594#M3942</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-20T12:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in PROC REPORT</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567617#M3943</link>
      <description>&lt;P&gt;Thank you for the tip and help. It worked.&amp;nbsp; And, when I add DISPLAY variables in DEFINE statement that sum goes away.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I display my variables.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:02:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567617#M3943</guid>
      <dc:creator>sharuu_00</dc:creator>
      <dc:date>2019-06-20T14:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in PROC REPORT</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567623#M3944</link>
      <description>&lt;P&gt;That was supposed to do .&lt;/P&gt;
&lt;P&gt;What do you want ? Post your output .&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:13:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567623#M3944</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-06-20T14:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Counting in PROC REPORT</title>
      <link>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567627#M3945</link>
      <description>&lt;P&gt;Thanks for the quick reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have added "DISPLAY variables" after "analysis options" and it did not worked. But, when I add DISPLAY before the analysis Then it works.&amp;nbsp; It displays varibles ans the sum. Thanks so much&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 14:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/All-Things-Community/Counting-in-PROC-REPORT/m-p/567627#M3945</guid>
      <dc:creator>sharuu_00</dc:creator>
      <dc:date>2019-06-20T14:21:16Z</dc:date>
    </item>
  </channel>
</rss>

