<?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: strange response of countw in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414616#M280049</link>
    <description>&lt;P&gt;Your parentheses are in the wrong place.&amp;nbsp; &amp;nbsp;This works.&amp;nbsp; I deleted other extra characters that you do not need.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test;
%let a=%sysfunc(countw(where Gruppe=1!where Gruppe=2,!));
%put &amp;amp;a;
%mend;
%test&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 18 Nov 2017 16:13:44 GMT</pubDate>
    <dc:creator>WarrenKuhfeld</dc:creator>
    <dc:date>2017-11-18T16:13:44Z</dc:date>
    <item>
      <title>strange response of countw</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414613#M280047</link>
      <description>&lt;P&gt;When I tried to write a loop over some arguments countw gave me the answer that "&lt;SPAN&gt;where Gruppe=1!where Gruppe=2" consists of four words when using "!" as delimiter. Shouldn't it be 2?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I used countw as shown in the log below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;61 %macro test;&lt;/P&gt;&lt;DIV class="sasSource"&gt;62&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 %let a=%sysfunc(countw(where Gruppe=1!where Gruppe=2),!);&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 %put "&amp;amp;a.";&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 %mend;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 %test;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;"4"&lt;/DIV&gt;</description>
      <pubDate>Sat, 18 Nov 2017 16:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414613#M280047</guid>
      <dc:creator>romangelzhaeuse</dc:creator>
      <dc:date>2017-11-18T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: strange response of countw</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414615#M280048</link>
      <description>&lt;P&gt;Looking at parentheses the ! is interpreted as a parameter for %sysfunc and not of countw. You're better of with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%sysfunc(countw(&amp;amp;Beds.,!));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;- Jan&lt;/P&gt;</description>
      <pubDate>Sat, 18 Nov 2017 16:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414615#M280048</guid>
      <dc:creator>jklaverstijn</dc:creator>
      <dc:date>2017-11-18T16:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: strange response of countw</title>
      <link>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414616#M280049</link>
      <description>&lt;P&gt;Your parentheses are in the wrong place.&amp;nbsp; &amp;nbsp;This works.&amp;nbsp; I deleted other extra characters that you do not need.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro test;
%let a=%sysfunc(countw(where Gruppe=1!where Gruppe=2,!));
%put &amp;amp;a;
%mend;
%test&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Nov 2017 16:13:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/strange-response-of-countw/m-p/414616#M280049</guid>
      <dc:creator>WarrenKuhfeld</dc:creator>
      <dc:date>2017-11-18T16:13:44Z</dc:date>
    </item>
  </channel>
</rss>

