<?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: Numeric format with decimal comma in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334860#M75661</link>
    <description>&lt;P&gt;Thank you for your response!&lt;BR /&gt;&lt;BR /&gt;V.Herrmann&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2017 09:20:35 GMT</pubDate>
    <dc:creator>VojtechHerrmann</dc:creator>
    <dc:date>2017-02-22T09:20:35Z</dc:date>
    <item>
      <title>Numeric format with decimal comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334697#M75598</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;is there any SAS numeric format, that would return these outputs from these&amp;nbsp;inputs:&lt;BR /&gt;INPUT: 1 --- OUTPUT: 1&lt;BR /&gt;INPUT: 1.1 --- OUTPUT: 1,1&lt;BR /&gt;INPUT: 1.1235 --- OUTPUT: 1,1235&lt;/P&gt;&lt;P&gt;?&lt;BR /&gt;&lt;BR /&gt;Basically:&amp;nbsp;I need some format with decimal comma, but the only one I have found is NUMXw.d. However that gives 1,0000 out of 1. Which is what I dont want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;BR /&gt;V.Herrmann&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 16:17:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334697#M75598</guid>
      <dc:creator>VojtechHerrmann</dc:creator>
      <dc:date>2017-02-21T16:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric format with decimal comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334734#M75607</link>
      <description>&lt;P&gt;I think you want COMMAXw.d&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 18:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334734#M75607</guid>
      <dc:creator>mbuchecker</dc:creator>
      <dc:date>2017-02-21T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric format with decimal comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334795#M75635</link>
      <description>&lt;P&gt;No format does this afaik. bestx shoud but doesn't.&lt;/P&gt;
&lt;P&gt;If you really need a format, you can build it:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc fcmp outlib=WORK.FUNCTIONS.TEMP; 
  function bestxx (NUMBER) $ ;
    return (translate(cat(NUMBER),',','.'));
  endsub;
run;

options cmplib= WORK.FUNCTIONS;    
proc format;
  value bestxx other=[bestxx()];
run;
 
data _null_;
  A= 1      ;put A= @11 A= bestxx.; 
  A= 1.1    ;put A= @11 A= bestxx.; 
  A= 1.1235 ;put A= @11 A= bestxx.; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;A=1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A=1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A=1.1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; A=1,1&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;A=1.1235&amp;nbsp; A=1,1235&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:19:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334795#M75635</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2017-02-21T22:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Numeric format with decimal comma</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334860#M75661</link>
      <description>&lt;P&gt;Thank you for your response!&lt;BR /&gt;&lt;BR /&gt;V.Herrmann&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 09:20:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Numeric-format-with-decimal-comma/m-p/334860#M75661</guid>
      <dc:creator>VojtechHerrmann</dc:creator>
      <dc:date>2017-02-22T09:20:35Z</dc:date>
    </item>
  </channel>
</rss>

