<?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: Case When in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466896#M285302</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you avoid using the contains operator and use the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;eq&lt;/FONT&gt; (equals)&amp;nbsp;operator instead for the first case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 15:54:26 GMT</pubDate>
    <dc:creator>Amir</dc:creator>
    <dc:date>2018-06-01T15:54:26Z</dc:date>
    <item>
      <title>Case When</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466888#M285301</link>
      <description>&lt;P&gt;I am trying to add a "Case When" statement to my table with contains.&amp;nbsp; I have 2 stings that are alike and it calculates both.&amp;nbsp; How do I distinguish&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp; Review and Discussion&lt;/P&gt;&lt;P&gt;2)&amp;nbsp; Review and Discussion Client&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:42:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466888#M285301</guid>
      <dc:creator>CTT53</dc:creator>
      <dc:date>2018-06-01T15:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: Case When</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466896#M285302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you avoid using the contains operator and use the&amp;nbsp;&lt;FONT face="courier new,courier"&gt;eq&lt;/FONT&gt; (equals)&amp;nbsp;operator instead for the first case?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 15:54:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466896#M285302</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2018-06-01T15:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Case When</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466926#M285303</link>
      <description>&lt;P&gt;I tried that however I am trying to count the occurrence of each time it appear.&amp;nbsp;&amp;nbsp; There are approx. 40 other descriptions that in the row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 16:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466926#M285303</guid>
      <dc:creator>CTT53</dc:creator>
      <dc:date>2018-06-01T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: Case When</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466930#M285304</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it would be useful if you shared your code (or a sample we can run) with some data in the form of a data step with &lt;FONT face="courier new,courier"&gt;datalines&lt;/FONT&gt; that we can also run to create the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would the count function help?:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002260230.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a002260230.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amir.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 16:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466930#M285304</guid>
      <dc:creator>Amir</dc:creator>
      <dc:date>2018-06-01T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Case When</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466971#M285305</link>
      <description>&lt;P&gt;Simply igore the one you don't want to count&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find(var,"&lt;SPAN&gt;Review and Discussion",'i')&amp;gt;0 and&amp;nbsp;Find(var,"Review and Discussion Client",'i')=0 then Count+1;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 18:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Case-When/m-p/466971#M285305</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-06-01T18:30:31Z</dc:date>
    </item>
  </channel>
</rss>

