<?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 to remove words in a column by another column values in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770608#M10227</link>
    <description>&lt;PRE&gt;data have;
input Word    &amp;amp; $40.                                 contains $;
cards;
the best gift                           gift
SAS programming                SAS
apt no: 12356                       12356
;
data want;
 set have;
 want=prxchange('s/\b'||strip(contains)||'\b//i',-1,word);
run;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Sep 2021 12:21:07 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-09-27T12:21:07Z</dc:date>
    <item>
      <title>How to remove words in a column by another column values</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770593#M10225</link>
      <description>&lt;P&gt;let's assume the data should like:&lt;/P&gt;&lt;P&gt;Word&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;contains&lt;/P&gt;&lt;P&gt;the best gift&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gift&lt;/P&gt;&lt;P&gt;SAS programming&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SAS&lt;/P&gt;&lt;P&gt;apt no: 12356&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12356&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The intended output is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Word&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; contains&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the best&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gift&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;programming&amp;nbsp; &amp;nbsp; &amp;nbsp; SAS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;apt no:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;12356&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I do this? Thanks for every help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 10:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770593#M10225</guid>
      <dc:creator>fatihekici</dc:creator>
      <dc:date>2021-09-27T10:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove words in a column by another column values</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770594#M10226</link>
      <description>&lt;P&gt;What is the logic?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 10:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770594#M10226</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-09-27T10:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove words in a column by another column values</title>
      <link>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770608#M10227</link>
      <description>&lt;PRE&gt;data have;
input Word    &amp;amp; $40.                                 contains $;
cards;
the best gift                           gift
SAS programming                SAS
apt no: 12356                       12356
;
data want;
 set have;
 want=prxchange('s/\b'||strip(contains)||'\b//i',-1,word);
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Sep 2021 12:21:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/How-to-remove-words-in-a-column-by-another-column-values/m-p/770608#M10227</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-09-27T12:21:07Z</dc:date>
    </item>
  </channel>
</rss>

