<?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: Where statement? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417547#M102575</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to extract the text contain 'NOS' or 'MISC' from column A, D,&amp;nbsp;G and H.&amp;nbsp;&amp;nbsp; 'NOS' and 'MISC' could be&amp;nbsp;either capital or low case.&amp;nbsp; In additional, they could be only part of text.&amp;nbsp;&amp;nbsp; For example, 'Defect-Nos' contains 'NOS'.&amp;nbsp;&amp;nbsp; 'MISCELLANEOUS' or 'MISC.' contain 'MISC'.&amp;nbsp;&amp;nbsp; I would like to find all of the possibility.&amp;nbsp;&amp;nbsp; In other words, the result should includes 'Defect-Nos', &amp;nbsp;'MISCELLANEOUS' and 'MISC.'&amp;nbsp;from &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;all&lt;/FONT&gt; &lt;/STRONG&gt;of the four columns.&amp;nbsp; &amp;nbsp;Could someone let me know how to approach it?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might want to consider the difference in the statement if change the highlighted all to any.&lt;/P&gt;
&lt;P&gt;'All' would usually be used when you require the condition to be true for each and every column of interest. Which in much computer syntax means comparisons joined with "and". Any would be at least one of the is true so a computer syntax "or" would appear between comparisons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have multiple columns to search you might consider providing some example input and show the desired result.&lt;/P&gt;
&lt;P&gt;The result is important as you could well have 4 "text containing". Should the result be in&amp;nbsp;a single variable? four variables? If multiple variables is order important?&lt;/P&gt;</description>
    <pubDate>Thu, 30 Nov 2017 20:25:05 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-11-30T20:25:05Z</dc:date>
    <item>
      <title>Where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417536#M102569</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to extract the text contain 'NOS' or 'MISC' from column A, D,&amp;nbsp;G and H.&amp;nbsp;&amp;nbsp; 'NOS' and 'MISC' could be&amp;nbsp;either capital or low case.&amp;nbsp; In additional, they could be only part of text.&amp;nbsp;&amp;nbsp; For example, 'Defect-Nos' contains 'NOS'.&amp;nbsp;&amp;nbsp; 'MISCELLANEOUS' or 'MISC.' contain 'MISC'.&amp;nbsp;&amp;nbsp; I would like to find all of the possibility.&amp;nbsp;&amp;nbsp; In other words, the result should includes 'Defect-Nos', &amp;nbsp;'MISCELLANEOUS' and 'MISC.'&amp;nbsp;from all of the four columns.&amp;nbsp; &amp;nbsp;Could someone let me know how to approach it?&amp;nbsp; Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:01:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417536#M102569</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-11-30T20:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417544#M102572</link>
      <description>&lt;P&gt;Insert the words you're looking for into a temporary array and loop through your list. Look at the third parameters of the INDEX and FIND functions so they ignore case.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417544#M102572</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-11-30T20:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417546#M102574</link>
      <description>&lt;P&gt;To find a string within an other string, use the index() or find() functions.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417546#M102574</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-11-30T20:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where statement?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417547#M102575</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/67134"&gt;@ybz12003&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hello:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to extract the text contain 'NOS' or 'MISC' from column A, D,&amp;nbsp;G and H.&amp;nbsp;&amp;nbsp; 'NOS' and 'MISC' could be&amp;nbsp;either capital or low case.&amp;nbsp; In additional, they could be only part of text.&amp;nbsp;&amp;nbsp; For example, 'Defect-Nos' contains 'NOS'.&amp;nbsp;&amp;nbsp; 'MISCELLANEOUS' or 'MISC.' contain 'MISC'.&amp;nbsp;&amp;nbsp; I would like to find all of the possibility.&amp;nbsp;&amp;nbsp; In other words, the result should includes 'Defect-Nos', &amp;nbsp;'MISCELLANEOUS' and 'MISC.'&amp;nbsp;from &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;all&lt;/FONT&gt; &lt;/STRONG&gt;of the four columns.&amp;nbsp; &amp;nbsp;Could someone let me know how to approach it?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might want to consider the difference in the statement if change the highlighted all to any.&lt;/P&gt;
&lt;P&gt;'All' would usually be used when you require the condition to be true for each and every column of interest. Which in much computer syntax means comparisons joined with "and". Any would be at least one of the is true so a computer syntax "or" would appear between comparisons.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have multiple columns to search you might consider providing some example input and show the desired result.&lt;/P&gt;
&lt;P&gt;The result is important as you could well have 4 "text containing". Should the result be in&amp;nbsp;a single variable? four variables? If multiple variables is order important?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 20:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Where-statement/m-p/417547#M102575</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-11-30T20:25:05Z</dc:date>
    </item>
  </channel>
</rss>

