<?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: Find Keywords or Phrases inside a block of unstructured text in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/340202#M22570</link>
    <description>&lt;P&gt;Thanks TomKari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
    <pubDate>Sun, 12 Mar 2017 00:34:21 GMT</pubDate>
    <dc:creator>OscarBoots1</dc:creator>
    <dc:date>2017-03-12T00:34:21Z</dc:date>
    <item>
      <title>Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338340#M22464</link>
      <description>&lt;P&gt;Hi Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a list of several hundred Keywords &amp;amp; short phrases 2 or 3 words together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a long list of unstructured text where I want to know if the Keywords &amp;amp; phrases appear exactly as I've got in the list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If they do appear, I want to export the ID field &amp;amp; then export the Keywords/Phrases out delimited by a comma&amp;nbsp;on the same row as the ID.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to export to a new table in the existing Project.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've had a look at some functions but maybe a Data Step Loop would be the most effective method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone assist with the Data Step code I would need to do this or suggest a better solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using SAS EG Vers 7.13 64 bit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 03:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338340#M22464</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-03-06T03:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338344#M22466</link>
      <description>&lt;P&gt;Look for hash iterate method within a datastep, using functions like find or index.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be more helpful if you post some test examples of your key words and of your text dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 03:45:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338344#M22466</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2017-03-06T03:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338349#M22468</link>
      <description>&lt;P&gt;Hi Shmuel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've posted&amp;nbsp;a quick Create table &amp;amp; Insert statement to help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, I've added some punctuation to show that the data is a bit messy but I'm just after the words/phrases&amp;nbsp;regardless of punctuation or case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to find &amp;amp; extract the words/phrases in the 'TEXT TO FIND' table from the UNSTRUCTURED TEXT' Table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking of a Loop that runs the first word/phrase from the 'TEXT TO FIND' table through all the records in the UNSTRUCTURED TEXT' Table extract the matches &amp;amp; do the same with the next word/phrase.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc sql;
   create table RDW.UNSTRUCTURED_TEXT
       (Check_String char(3000));

insert into RDW.UNSTRUCTURED_TEXT
    values('The quick brown dog, jumped over-the lazy dog')
    values('The QUICK GREEN dog jumped over, the lazy dog')
    values('The quick snake slithered over  the lazy dog')
	values('The dog quickly Jumped over the lazy Fox')
	values('The Quick; brown_dog! jumped over the Lazy dog');

title 'RDW.UNSTRUCTURED_TEXT';

select *
   from RDW.UNSTRUCTURED_TEXT;

proc sql;
   create table RDW.TEXT_TO_FIND
       (Check_String char(300));

insert into RDW.TEXT_TO_FIND
    values('QUICK GREEN dog')
    values('quickly Jumped over')
    values('slithered over  the lazy dog')
	values('The Quick;')
	values('snake');

title 'RDW.TEXT_TO_FIND';

select *
   from RDW.TEXT_TO_FIND;

proc printto; run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 04:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338349#M22468</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-03-06T04:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338392#M22469</link>
      <description>&lt;P&gt;This may give you some ideas:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/proceedings14/1717-2014.pdf" target="_self"&gt;http://support.sas.com/resources/papers/proceedings14/1717-2014.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 10:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338392#M22469</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-03-06T10:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338597#M22486</link>
      <description>&lt;P&gt;Thanks TomKari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's good but a little beyond my data Step ken at the moment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could I get a quick example using my posted data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to crawl before I can walk.&amp;nbsp; :&amp;nbsp; )&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338597#M22486</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-03-06T22:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338621#M22488</link>
      <description>&lt;P&gt;Your data sets did not have a ID variables so I don't know which one was supposed to. I put one into one of the sets, this approach would then just select the correct id. I'm not exactly sure what your desired output is. This may be a start.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table work.UNSTRUCTURED_TEXT
       (id int, Check_String char(3000));

   insert into work.UNSTRUCTURED_TEXT
    values(1,'The quick brown dog, jumped over-the lazy dog')
    values(2,'The QUICK GREEN dog jumped over, the lazy dog')
    values(3,'The quick snake slithered over  the lazy dog')
	 values(4,'The dog quickly Jumped over the lazy Fox')
	 values(5,'The Quick; brown_dog! jumped over the Lazy dog');
  select id,check_string 
  from work.UNSTRUCTURED_TEXT;
quit;

proc sql;
   create table work.TEXT_TO_FIND
       (Check_String char(300));

insert into work.TEXT_TO_FIND
    values('QUICK GREEN dog')
    values('quickly Jumped over')
    values('slithered over  the lazy dog')
	values('The Quick;')
	values('snake');

quit;

proc sql;
   create table want as
   select a.id,a.check_string, b.check_string as Found_text
   from work.UNSTRUCTURED_TEXT as a,work.TEXT_TO_FIND as b
   where index(a.check_string,strip(b.check_string))&amp;gt;0
   order by a.id;
quit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will make zero claim for effeciency other than in code maitenance or readability.&lt;/P&gt;
&lt;P&gt;Note: Putting YOUR libraries into code can be very problematic...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 00:04:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/338621#M22488</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-03-07T00:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/339024#M22510</link>
      <description>&lt;P&gt;I think this is pretty close:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhraseList;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SearchPhrase &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$50.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards4&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;QUICK GREEN dog&lt;/P&gt;
&lt;P&gt;quickly Jumped over&lt;/P&gt;
&lt;P&gt;slithered over the lazy dog&lt;/P&gt;
&lt;P&gt;The Quick;&lt;/P&gt;
&lt;P&gt;snake&lt;/P&gt;
&lt;P&gt;;;;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Comment &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$50.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;SeqNo = _n_;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;cards4&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The quick brown dog, jumped over-the lazy dog&lt;/P&gt;
&lt;P&gt;The QUICK GREEN dog jumped over, the lazy dog&lt;/P&gt;
&lt;P&gt;The quick snake slithered over the lazy dog&lt;/P&gt;
&lt;P&gt;The dog quickly Jumped over the lazy Fox&lt;/P&gt;
&lt;P&gt;The Quick; brown_dog! jumped over the Lazy dog&lt;/P&gt;
&lt;P&gt;;;;;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Inter1(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=SeqNo SearchPhrase);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; _n_ = &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhraseList;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;declare&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; hash P(dataset:&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'PhraseList'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;, multidata:&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'y'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="2"&gt; P.definekey(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'SearchPhrase'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;P.definedone();&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;declare&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; hiter iter(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;"P"&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;rc = iter.first();&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;do&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;while&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; (rc=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; find(Comment, SearchPhrase, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;'t'&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;) &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;rc = iter.next();&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Want(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;keep&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=SeqNo SearchResults);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SearchResults $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;10000&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;retain&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SearchResults;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Inter1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;by&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SeqNo;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; first.SeqNo &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SearchResults = SearchPhrase;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;else&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; SearchResults = catx(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="2"&gt;","&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;,SearchResults, SearchPhrase);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;if&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; last.SeqNo &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;output&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;datasets&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="2"&gt;lib&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;=work &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;nolist&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;delete&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; PhraseList;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;delete&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Have;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;delete&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Inter1;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 21:50:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/339024#M22510</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2017-03-07T21:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/340201#M22569</link>
      <description>&lt;P&gt;Thanks ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Very useful!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 00:25:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/340201#M22569</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-03-12T00:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find Keywords or Phrases inside a block of unstructured text</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/340202#M22570</link>
      <description>&lt;P&gt;Thanks TomKari,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's great&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated!&lt;/P&gt;</description>
      <pubDate>Sun, 12 Mar 2017 00:34:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Find-Keywords-or-Phrases-inside-a-block-of-unstructured-text/m-p/340202#M22570</guid>
      <dc:creator>OscarBoots1</dc:creator>
      <dc:date>2017-03-12T00:34:21Z</dc:date>
    </item>
  </channel>
</rss>

