<?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 '.' with ',' in a numeric column in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150979#M39769</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to assign the COMMAX format to this numeric variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2015 14:52:00 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2015-02-03T14:52:00Z</dc:date>
    <item>
      <title>replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150976#M39766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one help with following. (value in 'amt' column should be changed i.e,&amp;nbsp; '.' should be replaced by ',')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&amp;nbsp; &lt;BR /&gt; name='alpha';amt=100090.23; output;&lt;BR /&gt; name='beta';amt=299999.12; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;BR /&gt; name='alpha';amt='100090,23'; output;&lt;BR /&gt; name='beta';amt='299999,12'; output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150976#M39766</guid>
      <dc:creator>venka</dc:creator>
      <dc:date>2015-02-03T14:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150977#M39767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p05ww22zp7lcg3n1bjk7v93tscyo.htm" title="http://support.sas.com/documentation/cdl/en/lefunctionsref/63354/HTML/default/viewer.htm#p05ww22zp7lcg3n1bjk7v93tscyo.htm"&gt;SAS(R) 9.3 Functions and CALL Routines: Reference&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:45:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150977#M39767</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2015-02-03T14:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150978#M39768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, but what I have is a numeric column with a decimal value and translate and tranwrd are useful for character columns.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150978#M39768</guid>
      <dc:creator>venka</dc:creator>
      <dc:date>2015-02-03T14:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150979#M39769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You want to assign the COMMAX format to this numeric variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150979#M39769</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2015-02-03T14:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150980#M39770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@PaigeMiller: I just wanted to replace . with , and commax format also inserts period that separates every three digits.&lt;/P&gt;&lt;P&gt;But any ways, I converted the column to char and used translate, it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:57:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150980#M39770</guid>
      <dc:creator>venka</dc:creator>
      <dc:date>2015-02-03T14:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150981#M39771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Numeric data does not allow commas, slashes, or any other special character other than -0123456789..&amp;nbsp; If you want to have comma's then you either need to apply a format - such as PaigeMiller has suggested - which basically applies a viewing format to the data which would remain unchanged, or convert the numeric data into a text field and then use textual replace functions on it.&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set have;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length new_amt $20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_amt=tranwrd(put(amt,best.),".",",");&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2015 14:58:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150981#M39771</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-02-03T14:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150982#M39772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Add NUMXw.d format . You must come from somewhere of Euro ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&amp;nbsp; &lt;/P&gt;&lt;P&gt;name='alpha';amt=100090.23; output;&lt;/P&gt;&lt;P&gt;name='beta';amt=299999.12; output;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format amt numx12.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 07:27:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150982#M39772</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-02-04T07:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: replace '.' with ',' in a numeric column</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150983#M39773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! thats perfect and also correct guess.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Feb 2015 10:10:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/replace-with-in-a-numeric-column/m-p/150983#M39773</guid>
      <dc:creator>venka</dc:creator>
      <dc:date>2015-02-04T10:10:36Z</dc:date>
    </item>
  </channel>
</rss>

