<?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 extra _ and assign one back in the string? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376134#M90241</link>
    <description>&lt;P&gt;Thanks for asking.&amp;nbsp; I have figured out by myself.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2017 18:49:31 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2017-07-14T18:49:31Z</dc:date>
    <item>
      <title>How to remove extra _ and assign one back in the string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376112#M90227</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 extra _ from the oldname and assign one _ back to the string.&amp;nbsp;&amp;nbsp; Please advice how to do it.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; test;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;infile&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; datalines &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;dsd&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Oldname : &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$150.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Newname : &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="2"&gt;$150.&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;gr__major_get__yes, gr_major_get_yes&lt;/P&gt;
&lt;P&gt;gr_img_com___abn_metr_gyr, gr_img_com_abn_metr_gyr&lt;/P&gt;
&lt;P&gt;if_excu_con_mer__, if_excu_con_mer&lt;/P&gt;
&lt;P&gt;_roi_num_email___view_yes_, roi_num_email_view_yes&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376112#M90227</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-14T17:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove extra _ and assign one back in the string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376115#M90230</link>
      <description>&lt;P&gt;Please show the required output. "&amp;nbsp;assign one _ back to the string" is very ambiguous.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 17:30:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376115#M90230</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-07-14T17:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove extra _ and assign one back in the string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376124#M90234</link>
      <description>&lt;P&gt;The output is shown in the newname&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 18:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376124#M90234</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-14T18:09:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove extra _ and assign one back in the string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376134#M90241</link>
      <description>&lt;P&gt;Thanks for asking.&amp;nbsp; I have figured out by myself.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 18:49:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376134#M90241</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2017-07-14T18:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove extra _ and assign one back in the string?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376139#M90246</link>
      <description>&lt;P&gt;something like this&lt;/P&gt;
&lt;PRE&gt;newname= prxchange('s/_{2,}/_/',-1, prxchange('s/^_|_$//', -1, trim(oldname)));&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2017 19:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-remove-extra-and-assign-one-back-in-the-string/m-p/376139#M90246</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2017-07-14T19:12:21Z</dc:date>
    </item>
  </channel>
</rss>

