<?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 tranwrd in sysfunc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42446#M8682</link>
    <description>Hi,&lt;BR /&gt;
I am trying to use the code below to get the required result. when I use tranwrd in data _null_ I get the right result.&lt;BR /&gt;
&lt;BR /&gt;
%let m=apple martini;&lt;BR /&gt;
%let m=%sysfunc(tranwrd(&amp;amp;m," ",", "));&lt;BR /&gt;
%put &amp;amp;m;&lt;BR /&gt;
&lt;BR /&gt;
returns:  apple martini&lt;BR /&gt;
&lt;BR /&gt;
require : apple, martini</description>
    <pubDate>Thu, 28 Aug 2008 18:27:20 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-08-28T18:27:20Z</dc:date>
    <item>
      <title>tranwrd in sysfunc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42446#M8682</link>
      <description>Hi,&lt;BR /&gt;
I am trying to use the code below to get the required result. when I use tranwrd in data _null_ I get the right result.&lt;BR /&gt;
&lt;BR /&gt;
%let m=apple martini;&lt;BR /&gt;
%let m=%sysfunc(tranwrd(&amp;amp;m," ",", "));&lt;BR /&gt;
%put &amp;amp;m;&lt;BR /&gt;
&lt;BR /&gt;
returns:  apple martini&lt;BR /&gt;
&lt;BR /&gt;
require : apple, martini</description>
      <pubDate>Thu, 28 Aug 2008 18:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42446#M8682</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-28T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd in sysfunc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42447#M8683</link>
      <description>Try this:&lt;BR /&gt;
%let m=apple martini;&lt;BR /&gt;
%let m=%sysfunc(tranwrd(&amp;amp;m,%str( ),%str(, ) ));&lt;BR /&gt;
%put &amp;amp;m;&lt;BR /&gt;
&lt;BR /&gt;
And here the explanation:&lt;BR /&gt;
&lt;A href="http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0105D&amp;amp;L=sas-l&amp;amp;P=29776" target="_blank"&gt;http://www.listserv.uga.edu/cgi-bin/wa?A2=ind0105D&amp;amp;L=sas-l&amp;amp;P=29776&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 28 Aug 2008 19:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42447#M8683</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-08-28T19:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: tranwrd in sysfunc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42448#M8684</link>
      <description>Thanks, that was really helpful</description>
      <pubDate>Fri, 29 Aug 2008 13:24:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/tranwrd-in-sysfunc/m-p/42448#M8684</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-08-29T13:24:55Z</dc:date>
    </item>
  </channel>
</rss>

