<?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 Search based on words in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618103#M13428</link>
    <description>&lt;P&gt;I have thousand of rows of subject titles. I want to sieve out subject titles based on what I entered in a search parameter. Therefore I have an advanced filter like this in a list table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upcase (subject title) contains Upcase (search parameter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I entered "cat" in the text input box (embed with a search parameter), the list table should show all subject titles contain "cat". BUT, here's the problem: I don't want words that contains "cat" in their spelling, like "appli&lt;U&gt;&lt;STRONG&gt;cat&lt;/STRONG&gt;&lt;/U&gt;ion" or "allo&lt;U&gt;&lt;STRONG&gt;cat&lt;/STRONG&gt;&lt;/U&gt;ion", to be part of the results. I only want those that literally have the word "cat" in the subject titles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help. Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2020 15:49:39 GMT</pubDate>
    <dc:creator>mattneo</dc:creator>
    <dc:date>2020-01-17T15:49:39Z</dc:date>
    <item>
      <title>Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618103#M13428</link>
      <description>&lt;P&gt;I have thousand of rows of subject titles. I want to sieve out subject titles based on what I entered in a search parameter. Therefore I have an advanced filter like this in a list table:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Upcase (subject title) contains Upcase (search parameter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if I entered "cat" in the text input box (embed with a search parameter), the list table should show all subject titles contain "cat". BUT, here's the problem: I don't want words that contains "cat" in their spelling, like "appli&lt;U&gt;&lt;STRONG&gt;cat&lt;/STRONG&gt;&lt;/U&gt;ion" or "allo&lt;U&gt;&lt;STRONG&gt;cat&lt;/STRONG&gt;&lt;/U&gt;ion", to be part of the results. I only want those that literally have the word "cat" in the subject titles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help. Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 15:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618103#M13428</guid>
      <dc:creator>mattneo</dc:creator>
      <dc:date>2020-01-17T15:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618149#M13429</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269804"&gt;@mattneo&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use either one of the following functions:&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;data want;
	set have;
	where findw(subject_title,"cat"," ","i"); /* i modifier specifies that the search is case insensitive*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
	set have;
	where prxmatch('/\bcat\b/i',subject_title); /* i modifier specifies that the search is case insensitive and the meta character \b looks for a word boundary*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 17:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618149#M13429</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-17T17:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618257#M13430</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. However, I presumed these are codes to be applied some place? Sorry, I forgot to mention I am using SAS VA 8.3 and have the access to build reports and dashboards.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure if it's possible to copy and paste the below codes to the text portion in Advanced Filter to make it work. But I don't remember seeing operators like "findw" in it. Any ideas on how to meet my needs with the Operators in SAS VA? I was thinking to apply the following in Advanced Filter:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;UpCase( GetWord( Subject_title, Search Parameter, x) Contains Upcase( Search parameter) &amp;nbsp;&lt;/STRONG&gt; ,&lt;/P&gt;&lt;P&gt;where Search parameter = "cat" here&lt;/P&gt;&lt;P&gt;x is a number for the location to find the word "cat" within the subject title.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The thing is x can be any number for different subject titles. Hence I am stuck again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help and ideas will be appreciated. Cheers.&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 15:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618257#M13430</guid>
      <dc:creator>mattneo</dc:creator>
      <dc:date>2020-01-18T15:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618391#M13431</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/269804"&gt;@mattneo&lt;/a&gt;,&lt;BR /&gt;Thank you for your reply.&lt;BR /&gt;Unfortunatly, I am not familiar with SA VA &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;Hope you fill find the solution.&lt;BR /&gt;Best,</description>
      <pubDate>Sun, 19 Jan 2020 20:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618391#M13431</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-19T20:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618877#M13433</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;I tried to add ' ' (space) before and after my search parameter. I also added logic for missing search Parameter and think it works, is that what you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Parameter name: 'searchPar'p&lt;/P&gt;
&lt;P&gt;Variable name: myStringVar&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF ( 'searchPar'p Missing )&lt;BR /&gt;RETURN ( 1 = 1 )&lt;BR /&gt;ELSE ( UpCase('myStringVar'n) Contains UpCase(Concatenate(Concatenate(' ', 'searchPar'p), ' ')) )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 15:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/618877#M13433</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2020-01-21T15:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/619164#M13434</link>
      <description>Thanks Fredrik. The expression makes sense. Will let u know if there are any issues. Cheers,</description>
      <pubDate>Wed, 22 Jan 2020 14:21:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/619164#M13434</guid>
      <dc:creator>mattneo</dc:creator>
      <dc:date>2020-01-22T14:21:42Z</dc:date>
    </item>
    <item>
      <title>Re: Search based on words</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/619548#M13437</link>
      <description>The expression works if parameter is in the middle of the title. For example, if parameter= "cat", then title like " Some cat issues" appears. But what if "cat" appears at the start or end of title, like "Cat issues...." or "My pet cat", where there are no spaces at the start or at the end?</description>
      <pubDate>Thu, 23 Jan 2020 15:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Search-based-on-words/m-p/619548#M13437</guid>
      <dc:creator>mattneo</dc:creator>
      <dc:date>2020-01-23T15:20:31Z</dc:date>
    </item>
  </channel>
</rss>

