<?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 numeric format change in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629174#M20722</link>
    <description>&lt;P&gt;dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to save a numeric data under a format like : 111.222.020,33 in a macrovariable in order to use it in a sentence in an email afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original format of the variable 'Volumen' is: 111222020.33 and I want : 111.222.020,33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following, but it didn't work. What should I change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Ergebnis4;&lt;/P&gt;&lt;P&gt;set Ergebnis3;&lt;/P&gt;&lt;P&gt;format Volumen numx17.2;&lt;/P&gt;&lt;P&gt;call symput('Volumen', Volumen);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;Volumen.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
    <pubDate>Tue, 03 Mar 2020 16:26:37 GMT</pubDate>
    <dc:creator>PierreYvesILY</dc:creator>
    <dc:date>2020-03-03T16:26:37Z</dc:date>
    <item>
      <title>numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629174#M20722</link>
      <description>&lt;P&gt;dear SAS experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to save a numeric data under a format like : 111.222.020,33 in a macrovariable in order to use it in a sentence in an email afterwards.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original format of the variable 'Volumen' is: 111222020.33 and I want : 111.222.020,33&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried the following, but it didn't work. What should I change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data Ergebnis4;&lt;/P&gt;&lt;P&gt;set Ergebnis3;&lt;/P&gt;&lt;P&gt;format Volumen numx17.2;&lt;/P&gt;&lt;P&gt;call symput('Volumen', Volumen);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;Volumen.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629174#M20722</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-03T16:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629178#M20723</link>
      <description>&lt;P&gt;I think you want the COMMAX. format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
set Ergebnis3;
call symputx('Volumen', put(Volumen,commax16.2));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:33:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629178#M20723</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-03T16:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629179#M20724</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/281554"&gt;@PierreYvesILY&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the following format ("semi-french"):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data Ergebnis4;
	volumen = 111222020.33;
	call symput('Volumen', put(Volumen,commax17.2));
run;
%put &amp;amp;Volumen.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:33:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629179#M20724</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-03-03T16:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629180#M20725</link>
      <description>&lt;P&gt;If you want all 17 characters&amp;nbsp; (including leading blanks) in your macro variable, use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Ergebnis4;
  set Ergebnis3;
  call symput('Volumen', put(Volumen, numx17.2));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If you want to get rid of the leading blanks, switch from SYMPUT to SYMPUTX.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629180#M20725</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-03-03T16:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629185#M20726</link>
      <description>thanks a lot, I didn't know SYMPUTX yet</description>
      <pubDate>Tue, 03 Mar 2020 16:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629185#M20726</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-03T16:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: numeric format change</title>
      <link>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629186#M20727</link>
      <description>&lt;P&gt;thank you Paige, it worked exactly as I wanted!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Mar 2020 16:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/numeric-format-change/m-p/629186#M20727</guid>
      <dc:creator>PierreYvesILY</dc:creator>
      <dc:date>2020-03-03T16:46:41Z</dc:date>
    </item>
  </channel>
</rss>

