<?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: Which modifier to use to in COUNTW function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322035#M71188</link>
    <description>&lt;P&gt;M?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2017 00:43:05 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-01-03T00:43:05Z</dc:date>
    <item>
      <title>Which modifier to use to in COUNTW function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322034#M71187</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the following sas statement .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DTF = choosec(countw(date, "-"),"M", "D", " ");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;OBS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;date&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;2014-10-10&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; 2014-19&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3 &amp;nbsp; &amp;nbsp; &amp;nbsp;2014&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ouput needed;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OBS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DTF&lt;/P&gt;&lt;P&gt;1 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;D&lt;/P&gt;&lt;P&gt;3 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;M&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the output I need except fourth OBS. For the fourth OBS I am getting "M"&lt;/P&gt;&lt;P&gt;Which modifier I need to use when the date value is blank to get the output. Please help. Thanks.&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 00:33:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322034#M71187</guid>
      <dc:creator>knveraraju91</dc:creator>
      <dc:date>2017-01-03T00:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which modifier to use to in COUNTW function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322035#M71188</link>
      <description>&lt;P&gt;M?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 00:43:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322035#M71188</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-01-03T00:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Which modifier to use to in COUNTW function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322040#M71190</link>
      <description>&lt;P&gt;I have tested it. You can do:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;if not missing(date) then&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;dtf = choosec(countw(date,'-'),'m','d',' ');&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 01:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-modifier-to-use-to-in-COUNTW-function/m-p/322040#M71190</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-01-03T01:29:32Z</dc:date>
    </item>
  </channel>
</rss>

