<?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: remove the phone number value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/remove-the-phone-number-value/m-p/642120#M191528</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input ID   USRFLD :$12.	;
cards;
1     BH003
2     780-000-000
3     AC980
4     BH005
5     780-000-000
;
/*To remove the record*/
data want;
 set have;
 where not prxmatch('/(\d{3}-){2}\d{3,4}/', USRFLD);
run;

/*To change to blank*/
data want;
 set have;
 USRFLD=prxchange('s/(\d{3}-){2}\d{3,4}/ /', -1, USRFLD);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Apr 2020 23:21:26 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2020-04-22T23:21:26Z</dc:date>
    <item>
      <title>remove the phone number value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-the-phone-number-value/m-p/642118#M191526</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a column called USRFLD and it has all the code values like BH003, AC980 etc.. But unfortunately there is a data issue and it populates the phone number for few rows. I need to remove those records .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; USRFLD&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BH003&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 780-000-000&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC980&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BH005&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 780-000-000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;want:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp; USRFLD&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;BH003&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AC980&lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BH005&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Apr 2020 23:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-the-phone-number-value/m-p/642118#M191526</guid>
      <dc:creator>cho16</dc:creator>
      <dc:date>2020-04-22T23:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: remove the phone number value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-the-phone-number-value/m-p/642120#M191528</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data have;
input ID   USRFLD :$12.	;
cards;
1     BH003
2     780-000-000
3     AC980
4     BH005
5     780-000-000
;
/*To remove the record*/
data want;
 set have;
 where not prxmatch('/(\d{3}-){2}\d{3,4}/', USRFLD);
run;

/*To change to blank*/
data want;
 set have;
 USRFLD=prxchange('s/(\d{3}-){2}\d{3,4}/ /', -1, USRFLD);
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Apr 2020 23:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-the-phone-number-value/m-p/642120#M191528</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-04-22T23:21:26Z</dc:date>
    </item>
  </channel>
</rss>

