<?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 How to remove three number in the front or two letters in the end? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627267#M185120</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to remove&amp;nbsp;000 in the front and two letters in the end in the TempID?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data datain;
	format TempID $ 200. ;
	input TempID &amp;amp; ;
	cards;
	5648MA
	0009463
	0004721
	6325IL
	0065VN
	0435KK
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 25 Feb 2020 18:29:47 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2020-02-25T18:29:47Z</dc:date>
    <item>
      <title>How to remove three number in the front or two letters in the end?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627267#M185120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to remove&amp;nbsp;000 in the front and two letters in the end in the TempID?&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data datain;
	format TempID $ 200. ;
	input TempID &amp;amp; ;
	cards;
	5648MA
	0009463
	0004721
	6325IL
	0065VN
	0435KK
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627267#M185120</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-25T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove three number in the front or two letters in the end?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627270#M185123</link>
      <description>&lt;P&gt;Could you please explain the problem more completely and accurately? None of the examples you show has three numbers before the letters. What should we do with values that don't have two letters at the end? Are the two letters always in the same positions?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:33:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627270#M185123</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-25T18:33:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove three number in the front or two letters in the end?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627278#M185128</link>
      <description>&lt;P&gt;Sorry for the confusion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Remove the follow:&lt;/P&gt;
&lt;P&gt;1.&amp;nbsp; 000 is always&amp;nbsp;in the front of&amp;nbsp;the four digits number.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp; Two letters are always at the end of the four digits numbers.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it might better&amp;nbsp;clean up&amp;nbsp;in two different groups.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data dataout;
	format TempID_ $ 200. ;
	input TempID_ &amp;amp; ;
	cards;
	5648
	9463
	4721
	6325
	0065
	0435
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627278#M185128</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2020-02-25T18:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove three number in the front or two letters in the end?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627286#M185132</link>
      <description>&lt;P&gt;I'm afraid I'm totally lost here. Your reply doesn't seem to clarify the problem for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627286#M185132</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-02-25T18:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove three number in the front or two letters in the end?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627288#M185134</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data datain;
	format TempID $ 200. ;
	input TempID &amp;amp; ;
	cards;
	5648MA
	0009463
	0004721
	6325IL
	0065VN
	0435KK
;
run;

data want;
 set datain;
 length want $4;
 want=prxchange('s/(^000)(\d{4})/$2/',-1, tempid);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:56:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-three-number-in-the-front-or-two-letters-in-the/m-p/627288#M185134</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-02-25T18:56:54Z</dc:date>
    </item>
  </channel>
</rss>

