<?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: How do I remove a list of words from a string using a macro ? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620972#M19574</link>
    <description>&lt;P&gt;Don't jump to the conclusion that macros are needed here. Usually, in a data step, an ARRAY will do the work, without the complications of using macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data list;
input rule_id $;
cards;
RAE001
RAE002
RAE003
RAE007
RAE011
RAE012
RAE013
RAE014
RAE015
RAE016
;
proc transpose data=list out=listt prefix=rule;
var rule_id;
run;

data dqa_issues;
	input string :&amp;amp; $100.;
	cards;
RAE012, RAE013, RAE016, PP001
DQA1917
;
data dqa_issues1;
    if _n_=1 then set listt;
	array rule $ rule:;
	set dqa_issues;
	string=compress(string,',');
	do i=1 to dim(rule);
	    string=tranwrd(string,trim(rule(i)),' ');
	end;
	string=left(compbl(string));
	drop i rule:;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 29 Jan 2020 19:55:11 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2020-01-29T19:55:11Z</dc:date>
    <item>
      <title>How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620946#M19570</link>
      <description>&lt;P&gt;Hi, hope someone can help ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset named&amp;nbsp;'RA_RULES' containing one column of RULE_ID's:&lt;/P&gt;&lt;P&gt;RULE_ID&lt;/P&gt;&lt;P&gt;RAE001&lt;BR /&gt;RAE002&lt;BR /&gt;RAE003&lt;BR /&gt;RAE007&lt;BR /&gt;RAE011&lt;BR /&gt;RAE012&lt;BR /&gt;RAE013&lt;BR /&gt;RAE014&lt;BR /&gt;RAE015&lt;BR /&gt;RAE016&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a second dataset named BASE_DATA which holds a column of concatenated rules named&amp;nbsp;'DQA_ISSUES':&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DQA_ISSUES:&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;RAE012, RAE013, RAE016&lt;/FONT&gt;, PP001&lt;BR /&gt;DQA1917&lt;BR /&gt;DQA1896, DQA1896, DQA1912, &lt;FONT color="#ff0000"&gt;RAE007&lt;/FONT&gt;&lt;BR /&gt;DQA1898, &lt;FONT color="#ff0000"&gt;RAE003&lt;/FONT&gt;&lt;BR /&gt;PP003&lt;BR /&gt;DQA1898&lt;BR /&gt;PP001&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If possible I need to remove any RAE rule from this column to give me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DQA_ISSUES:&lt;/P&gt;&lt;P&gt;PP001&lt;BR /&gt;DQA1917&lt;BR /&gt;DQA1896, DQA1896, DQA1912,&lt;BR /&gt;DQA1898&lt;BR /&gt;PP003&lt;BR /&gt;DQA1898&lt;BR /&gt;PP001&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know how I could do this ? I&amp;nbsp;can do it by&amp;nbsp;hard coding&amp;nbsp;the rules in a do loop but I was hoping I could pull in the rules from the dataset in step one and run it through a macro. Any tips please ?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 19:18:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620946#M19570</guid>
      <dc:creator>Rob_HILL_79</dc:creator>
      <dc:date>2020-01-29T19:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620951#M19572</link>
      <description>&lt;P&gt;See below code which works using hard coded values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DQA.BASE_DATA3;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DQA.BASE_DATA2;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DQA_ISSUES = DQA_ISSUES;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;length&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; word $&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;27&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;IF&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; DQA_RA_BACKLOG = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'N'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;THEN&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; word = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE001,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE002,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE003,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE007,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE011,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE012,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE013,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE014,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE015,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE016,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE017,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE021,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE022,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE024,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE030,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE031,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE033,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE035,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE037,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE038,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE040,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE044,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE045,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE046,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE047,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE048,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'RAE049,'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;DQA_ISSUES = tranwrd(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||DQA_ISSUES, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;||strip(word)||&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;, &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;' '&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DQA_ISSUES = compbl(DQA_ISSUES);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;drop&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; word ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2020 19:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620951#M19572</guid>
      <dc:creator>Rob_HILL_79</dc:creator>
      <dc:date>2020-01-29T19:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620972#M19574</link>
      <description>&lt;P&gt;Don't jump to the conclusion that macros are needed here. Usually, in a data step, an ARRAY will do the work, without the complications of using macros.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data list;
input rule_id $;
cards;
RAE001
RAE002
RAE003
RAE007
RAE011
RAE012
RAE013
RAE014
RAE015
RAE016
;
proc transpose data=list out=listt prefix=rule;
var rule_id;
run;

data dqa_issues;
	input string :&amp;amp; $100.;
	cards;
RAE012, RAE013, RAE016, PP001
DQA1917
;
data dqa_issues1;
    if _n_=1 then set listt;
	array rule $ rule:;
	set dqa_issues;
	string=compress(string,',');
	do i=1 to dim(rule);
	    string=tranwrd(string,trim(rule(i)),' ');
	end;
	string=left(compbl(string));
	drop i rule:;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 19:55:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620972#M19574</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-01-29T19:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620979#M19577</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data list;
input rule_id $;
cards;
RAE001
RAE002
RAE003
RAE007
RAE011
RAE012
RAE013
RAE014
RAE015
RAE016
;

data dqa_issues;
	input string :&amp;amp; $100.;
	cards;
RAE012, RAE013, RAE016, PP001
DQA1917
DQA1896, DQA1896, DQA1912, RAE007
DQA1898, RAE003
PP003
DQA1898
PP001
;

data want;
 if _n_=1 then do;
  if 0 then set list;
   dcl hash H (dataset:'list') ;
   h.definekey  ("rule_id") ;
   h.definedone () ;
 end;
 set dqa_issues;
 length want $100;
 do _n_=1 to countw(string,', ');
  if h.check(key:scan(string,_n_,', '))=0 then continue;
  want=catx(', ',want,scan(string,_n_,', '));
 end;
 drop rule_id;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Print: Data Set WORK.WANT" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="l header" scope="col"&gt;string&lt;/TH&gt;
&lt;TH class="l header" scope="col"&gt;want&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;RAE012, RAE013, RAE016, PP001&lt;/TD&gt;
&lt;TD class="l data"&gt;PP001&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;DQA1917&lt;/TD&gt;
&lt;TD class="l data"&gt;DQA1917&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;DQA1896, DQA1896, DQA1912, RAE007&lt;/TD&gt;
&lt;TD class="l data"&gt;DQA1896, DQA1896, DQA1912&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;DQA1898, RAE003&lt;/TD&gt;
&lt;TD class="l data"&gt;DQA1898&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;PP003&lt;/TD&gt;
&lt;TD class="l data"&gt;PP003&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;DQA1898&lt;/TD&gt;
&lt;TD class="l data"&gt;DQA1898&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="l data"&gt;PP001&lt;/TD&gt;
&lt;TD class="l data"&gt;PP001&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Jan 2020 20:07:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/620979#M19577</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-29T20:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621075#M19589</link>
      <description>&lt;P&gt;Wow - thanks so much for the speedy response it worked a treat ! This code will come in really useful as I can adapt it for a few other scenarios in other programs I have. Thanks once again for this, really appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 07:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621075#M19589</guid>
      <dc:creator>Rob_HILL_79</dc:creator>
      <dc:date>2020-01-30T07:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621078#M19591</link>
      <description>&lt;P&gt;Wow - Thanks so much for the speedy response, it worked a treat !&amp;nbsp;This code will come in really useful&amp;nbsp;as I can adapt it for&amp;nbsp;a few other&amp;nbsp; scenarios In other programs I have. Thanks again for this really appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 08:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621078#M19591</guid>
      <dc:creator>Rob_HILL_79</dc:creator>
      <dc:date>2020-01-30T08:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621170#M19597</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/309589"&gt;@Rob_HILL_79&lt;/a&gt;&amp;nbsp; It appears you are new to SAS forum. So, hearty welcome. Please close the thread by marking a solution as answered. We the community, generally expect to honor the 1st person who responded to be given the credit and so I would request you to mark Paigemiller's solution.&lt;/P&gt;
&lt;P&gt;Of course many a time, the original poster would prefer an answer that best meets their needs and mark that very solution, however in this case it's apparent both did in your case. So easy to mark and complete. Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:07:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621170#M19597</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-30T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I remove a list of words from a string using a macro ?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621172#M19598</link>
      <description>&lt;P&gt;Thanks for the kind welcome and also the answer to my post in record time ! I've accepted the solution as requested. Once again many thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-remove-a-list-of-words-from-a-string-using-a-macro/m-p/621172#M19598</guid>
      <dc:creator>Rob_HILL_79</dc:creator>
      <dc:date>2020-01-30T15:16:43Z</dc:date>
    </item>
  </channel>
</rss>

