<?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: How do I use DO LOOP to count number of responses that equal X in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426633#M105129</link>
    <description>&lt;P&gt;And this is the reason, everyone with less than 100 pts gets their questions quoted....keep at it.&lt;/P&gt;</description>
    <pubDate>Wed, 10 Jan 2018 20:31:38 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-01-10T20:31:38Z</dc:date>
    <item>
      <title>How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426597#M105116</link>
      <description />
      <pubDate>Wed, 10 Jan 2018 20:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426597#M105116</guid>
      <dc:creator>FSHN</dc:creator>
      <dc:date>2018-01-10T20:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426601#M105117</link>
      <description>&lt;P&gt;perhaps like this:&lt;/P&gt;&lt;P&gt;call missing(count);&lt;/P&gt;&lt;P&gt;do _n_=1 to dim(&lt;SPAN&gt;TwentyItems&amp;nbsp;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if&amp;nbsp;TwentyItems&amp;nbsp;(_n_)='neutral' then count+1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or assign count=0 initial&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;count=0&amp;nbsp;&lt;/SPAN&gt;;&lt;/P&gt;&lt;P&gt;do _n_=1 to dim(&lt;SPAN&gt;TwentyItems&amp;nbsp;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;if&amp;nbsp;TwentyItems&amp;nbsp;(_n_)='neutral' then count+1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;end;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 18:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426601#M105117</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-10T18:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426614#M105122</link>
      <description />
      <pubDate>Wed, 10 Jan 2018 20:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426614#M105122</guid>
      <dc:creator>FSHN</dc:creator>
      <dc:date>2018-01-10T20:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426617#M105123</link>
      <description>&lt;P&gt;Are you sure, you are NOT dropping by accident at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;CALL missing(KNeutral);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;IF TwentyItems {J} = 3 then KNeutral + 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The very moment the code complies, sas builds the descriptor portion of the dataset with all variables includingthe new assignment variable in the PDV(program data vector). There is not a chance this can be automatically dropped from your output. Please check thoroughly&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 19:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426617#M105123</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2018-01-10T19:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426620#M105125</link>
      <description />
      <pubDate>Wed, 10 Jan 2018 20:25:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426620#M105125</guid>
      <dc:creator>FSHN</dc:creator>
      <dc:date>2018-01-10T20:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426629#M105127</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/95708"&gt;@FSHN&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;There variable is there, but I'm not getting my frequency tables to appear as I'd like. Thanks for help me get this far.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You haven't shown what you want or 'like', what you have or what your code is at this point so there's probably very little we can say regarding your problem at this point.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A generic guess would be to transpose your data - don't bother trying to count it in a wide format - and then use PROC FREQ to summarize it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426629#M105127</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-10T20:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426630#M105128</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/95708"&gt;@FSHN&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;There variable is there, but I'm not getting my frequency tables to appear as I'd like. Thanks for help me get this far.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And what does "&amp;nbsp;I'm not getting my frequency tables to appear as I'd like." actually mean in coding terms? Do you have the frequency value but not in table of the desired format? The frequencies are incorrect? Something else?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Show what the desired table should look like and best would be to provide some example data to build a table with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you want one of the other procedures that will report a count such as Proc Report or Tabulate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:24:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426630#M105128</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-01-10T20:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I use DO LOOP to count number of responses that equal X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426633#M105129</link>
      <description>&lt;P&gt;And this is the reason, everyone with less than 100 pts gets their questions quoted....keep at it.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 20:31:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-use-DO-LOOP-to-count-number-of-responses-that-equal-X/m-p/426633#M105129</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-01-10T20:31:38Z</dc:date>
    </item>
  </channel>
</rss>

