<?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: problem from data cleansing in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623546#M19945</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/107435"&gt;@harrylui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach, also using a pearl regular expression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input name $50.;
	cards;
THE CLIFTON_ABCD
THE FOODIE BA_ABCD
THE HOME UBON_ABCD
MAKRONO_ABCD 
;

data want;
	set have;
	length name2 $30;
	name2 = prxchange('s/(.+)\b.+_ABCD/$1/',-1,name);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 10 Feb 2020 12:05:52 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-02-10T12:05:52Z</dc:date>
    <item>
      <title>problem from data cleansing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623477#M19933</link>
      <description>&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i want to REMOVE the words connect to _ABCD and also _ABCD itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone tell me how to do? and is it possible not to remove the word before it when it is one string like my example row 4?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Name&lt;/P&gt;&lt;P&gt;THE CLIFTON_ABCD&lt;BR /&gt;THE FOODIE BA_ABCD&lt;BR /&gt;THE HOME UBON_ABCD&lt;/P&gt;&lt;P&gt;MAKRONO_ABCD&lt;BR /&gt;&lt;BR /&gt;thanks you so much for Helping me!&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 02:22:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623477#M19933</guid>
      <dc:creator>harrylui</dc:creator>
      <dc:date>2020-02-10T02:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem from data cleansing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623481#M19934</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input var $30.;
cards;
THE CLIFTON_ABCD
THE FOODIE BA_ABCD
THE HOME UBON_ABCD
MAKRONO_ABCD 
;

data want;
set have;
length want $50;
if countw(var,' ')&amp;gt;1 then want=substr(var,1,prxmatch('/\b[a-z]+_ABCD\b/i', var)-1);
else want=var;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Feb 2020 03:01:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623481#M19934</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-02-10T03:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: problem from data cleansing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623546#M19945</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/107435"&gt;@harrylui&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another approach, also using a pearl regular expression:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
	input name $50.;
	cards;
THE CLIFTON_ABCD
THE FOODIE BA_ABCD
THE HOME UBON_ABCD
MAKRONO_ABCD 
;

data want;
	set have;
	length name2 $30;
	name2 = prxchange('s/(.+)\b.+_ABCD/$1/',-1,name);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 10 Feb 2020 12:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/623546#M19945</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-02-10T12:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem from data cleansing</title>
      <link>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/624119#M20061</link>
      <description>&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:33:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/problem-from-data-cleansing/m-p/624119#M20061</guid>
      <dc:creator>harrylui</dc:creator>
      <dc:date>2020-02-12T09:33:19Z</dc:date>
    </item>
  </channel>
</rss>

