<?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 Find a specific text in the randomly? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621540#M182708</link>
    <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a challenge situation here.&amp;nbsp;&amp;nbsp; I would like to looking for a text with 'Health Center' in one of my variables.&amp;nbsp;&amp;nbsp; However, it comes with different formats and different places.&amp;nbsp;&amp;nbsp; I am curious, if there is a&amp;nbsp;way to find them.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;1. Health Center&lt;/P&gt;
&lt;P&gt;2. health center&lt;/P&gt;
&lt;P&gt;3. Health center&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;Health State Center&lt;/P&gt;
&lt;P&gt;5. State health center&lt;/P&gt;
&lt;P&gt;6. Health Department Center&lt;/P&gt;
&lt;P&gt;7. Department health center&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 20:22:42 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-01-31T20:22:42Z</dc:date>
    <item>
      <title>Find a specific text in the randomly?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621540#M182708</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a challenge situation here.&amp;nbsp;&amp;nbsp; I would like to looking for a text with 'Health Center' in one of my variables.&amp;nbsp;&amp;nbsp; However, it comes with different formats and different places.&amp;nbsp;&amp;nbsp; I am curious, if there is a&amp;nbsp;way to find them.&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example,&lt;/P&gt;
&lt;P&gt;1. Health Center&lt;/P&gt;
&lt;P&gt;2. health center&lt;/P&gt;
&lt;P&gt;3. Health center&lt;/P&gt;
&lt;P&gt;4.&amp;nbsp;Health State Center&lt;/P&gt;
&lt;P&gt;5. State health center&lt;/P&gt;
&lt;P&gt;6. Health Department Center&lt;/P&gt;
&lt;P&gt;7. Department health center&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 20:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621540#M182708</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-01-31T20:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific text in the randomly?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621545#M182709</link>
      <description>&lt;P&gt;Do you mean this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input test $40.;
cards;
1. Health Center
2. health center
3. Health center
4. Health State Center
5. State health center
6. Health Department Center
7. Department health center
;

data want;
set have;
where findw(test,'health center',' ','i');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 20:39:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621545#M182709</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-31T20:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific text in the randomly?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621547#M182710</link>
      <description>&lt;P&gt;No, I would like to find all the seven answers even though there are one word in-between 'Health Center' or in front of&amp;nbsp;it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 20:43:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621547#M182710</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-01-31T20:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific text in the randomly?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621548#M182711</link>
      <description>&lt;P&gt;I would assume you wanna match text that basically should have both words.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How about&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;where findw(test,'health',' ','i') and findw(test,'center',' ','i');

/*or making sure health precedes center*/

where findw(test,'center',' ','i')&amp;gt;findw(test,'health',' ','i');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jan 2020 20:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621548#M182711</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-31T20:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Find a specific text in the randomly?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621556#M182714</link>
      <description>&lt;P&gt;Thanks, that's what I want!&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 21:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-a-specific-text-in-the-randomly/m-p/621556#M182714</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-01-31T21:35:18Z</dc:date>
    </item>
  </channel>
</rss>

