<?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: What do i miss using tranwrd() in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645225#M192851</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Didn't you mean the following instead of&amp;nbsp;&lt;CODE class=" language-sas"&gt;tranwrd(x, "efg", "abc")&amp;nbsp;&lt;/CODE&gt;? -&amp;gt;&amp;nbsp;&lt;CODE class=" language-sas"&gt;tranwrd(x, "abc", "efg")&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 71         data _null_;
 72         x='111 abc 222';
 73         t=tranwrd(x, "abc", "efg");
 74         put x=t=;
 75         run;
 
 x=111 abc 222 t=111 efg 222&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 05 May 2020 09:56:44 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-05-05T09:56:44Z</dc:date>
    <item>
      <title>What do i miss using tranwrd()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645221#M192848</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;73         data _null_;
 74           x = '111 abc 222';
 75           t = tranwrd(x,"efg","abc");
 76           put x= t=;
 77         run;
 
 x=111 abc 222 t=111 abc 222&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why tranwrd() did not replace the substring as coded ?&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 09:53:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645221#M192848</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-05T09:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: What do i miss using tranwrd()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645225#M192851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Didn't you mean the following instead of&amp;nbsp;&lt;CODE class=" language-sas"&gt;tranwrd(x, "efg", "abc")&amp;nbsp;&lt;/CODE&gt;? -&amp;gt;&amp;nbsp;&lt;CODE class=" language-sas"&gt;tranwrd(x, "abc", "efg")&amp;nbsp;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; 71         data _null_;
 72         x='111 abc 222';
 73         t=tranwrd(x, "abc", "efg");
 74         put x=t=;
 75         run;
 
 x=111 abc 222 t=111 efg 222&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 09:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645225#M192851</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-05-05T09:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: What do i miss using tranwrd()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645226#M192852</link>
      <description>&lt;P&gt;It is an inconsistency between TRANSLATE() and TRANWRD(). The order of "from" and "to" is reversed between the two.&lt;/P&gt;</description>
      <pubDate>Tue, 05 May 2020 10:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645226#M192852</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-05-05T10:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: What do i miss using tranwrd()</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645232#M192854</link>
      <description>&lt;P&gt;I misunderstood the word "target" in the next syntax found in sas9.2 doc.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sgml"&gt;
&lt;TABLE width="100%" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR valign="bottom"&gt;
&lt;TD&gt;&lt;HR /&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;
&lt;H2&gt;&lt;A name="a002505735" target="_blank"&gt;&lt;/A&gt;Syntax&lt;/H2&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD&gt;&lt;SPAN class="strong"&gt;TRANWRD&lt;/SPAN&gt;(&lt;SPAN class="emph"&gt;source,target,replacement&lt;/SPAN&gt;)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;A name="a002896390" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp; and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292097"&gt;@ed_sas_member&lt;/a&gt;&amp;nbsp;for your quick answer.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 05 May 2020 10:24:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-do-i-miss-using-tranwrd/m-p/645232#M192854</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-05-05T10:24:05Z</dc:date>
    </item>
  </channel>
</rss>

