<?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: Tranwrd : Replacing in all columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811032#M319880</link>
    <description>&lt;P&gt;The code snippet you've posted is syntactically correct and should work ...as long as you run it AFTER the location in the data step where the character variables of interest get created during the compilation phase (i.e. after a set, merge, attrib etc. statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 02 May 2022 10:18:06 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2022-05-02T10:18:06Z</dc:date>
    <item>
      <title>Tranwrd : Replacing in all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811008#M319868</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know please ho to replace all "."&amp;nbsp; in all columns by the ",".&lt;/P&gt;
&lt;P&gt;I run this code, but I have no columns in my data result :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array Var _character_;
            do over Var;
            Var=tranwrd(Var,'.',',');
            end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thank you for your help !&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811008#M319868</guid>
      <dc:creator>SASdevAnneMarie</dc:creator>
      <dc:date>2022-05-02T08:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd : Replacing in all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811014#M319869</link>
      <description>&lt;P&gt;Please post the complete log of the step you used.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 08:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811014#M319869</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-02T08:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd : Replacing in all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811032#M319880</link>
      <description>&lt;P&gt;The code snippet you've posted is syntactically correct and should work ...as long as you run it AFTER the location in the data step where the character variables of interest get created during the compilation phase (i.e. after a set, merge, attrib etc. statement).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 10:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811032#M319880</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-05-02T10:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Tranwrd : Replacing in all columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811073#M319910</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/286185"&gt;@SASdevAnneMarie&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know please ho to replace all "."&amp;nbsp; in all columns by the ",".&lt;/P&gt;
&lt;P&gt;I run this code, but I have no columns in my data result :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array Var _character_;
            do over Var;
            Var=tranwrd(Var,'.',',');
            end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Thank you for your help !&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will not create zero variables.&amp;nbsp; It won't create ANYTHING at all.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You need to include that code in a DATA step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  array Var _character_;
  do over Var;
    Var=tranwrd(Var,'.',',');
  end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 May 2022 14:33:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Tranwrd-Replacing-in-all-columns/m-p/811073#M319910</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-05-02T14:33:05Z</dc:date>
    </item>
  </channel>
</rss>

