<?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: replace problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568101#M159859</link>
    <description>&lt;P&gt;thanks a lot&lt;/P&gt;</description>
    <pubDate>Sat, 22 Jun 2019 01:50:39 GMT</pubDate>
    <dc:creator>pengznuc</dc:creator>
    <dc:date>2019-06-22T01:50:39Z</dc:date>
    <item>
      <title>replace problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568097#M159856</link>
      <description>&lt;P&gt;I have some words which is something like "abc % (%)". I want the result like "abc (%)". I tried either "translate" or "tranwrd" function. But the result is "abc % (". I want to know what is the reason for this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope someone could help me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data try;
txt1="abc % (%)";
x=translate(txt1, "% (%)", "(%)");
y=tranwrd(txt1, "% (%)", "(%)");
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Jun 2019 01:03:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568097#M159856</guid>
      <dc:creator>pengznuc</dc:creator>
      <dc:date>2019-06-22T01:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: replace problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568100#M159858</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/190636"&gt;@pengznuc&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have some words which is something like "abc % (%)". I want the result like "abc (%)". I tried either "translate" or "tranwrd" function. But the result is "abc % (". I want to know what is the reason for this problem.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope someone could help me.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data try;
txt1="abc % (%)";
x=translate(txt1, "% (%)", "(%)");
y=tranwrd(txt1, "% (%)", "(%)");
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The TRANWRD() call works fine.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;TRANSLATE() is not the function for this as that just replaces individual characters.&amp;nbsp; You call is saying the replace the there characters listed in the last argument with the corresponding first three characters in the first argument.&amp;nbsp; So ( -&amp;gt; % and % -&amp;gt; space and ) -&amp;gt; (.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 01:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568100#M159858</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-06-22T01:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: replace problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568101#M159859</link>
      <description>&lt;P&gt;thanks a lot&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jun 2019 01:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/replace-problem/m-p/568101#M159859</guid>
      <dc:creator>pengznuc</dc:creator>
      <dc:date>2019-06-22T01:50:39Z</dc:date>
    </item>
  </channel>
</rss>

