<?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: proc format text instead of numeric in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393843#M66337</link>
    <description>&lt;P&gt;thanks but I created the format # ##0,00000 in excel and by doing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:# ##0,00000'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I get 225 353,74 (only two deci)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't succeed to get in excel a number format like &amp;nbsp;225 353,73804&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2017 12:05:34 GMT</pubDate>
    <dc:creator>Nasser_DRMCP</dc:creator>
    <dc:date>2017-09-07T12:05:34Z</dc:date>
    <item>
      <title>proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393811#M66333</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format library = fodat.cat_formats ;
picture frmt_num_spac_comma
0 - 9999999 = '000 000 000,00000' (decsep=',' dig3sep=' ') ;
run ;


data encours ;
input montant ;
datalines ; 
123456.12345 
;

data encours2 ;
set encours ;
montant2 = put(montant,frmt_num_spac_comma.);
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the amount 123456,12345&amp;nbsp; and I would like to get 123 456,123456. (space thousand separator)&lt;/P&gt;&lt;P&gt;so I appply a format (by creating an amount2) that I created. the display is correct but the format of the amount2 is character and I would like numeric. How can I fix this ?&lt;/P&gt;&lt;P&gt;thanks a lot in adance.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Nasser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 10:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393811#M66333</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-09-07T10:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393818#M66334</link>
      <description>&lt;P&gt;If you want to keep a number and display a formatted value then you apply the format to the number rather than converting to character, something like:&lt;/P&gt;
&lt;PRE&gt;proc format library=fodat.cat_formats;
  picture frmt_num_spac_comma
    0-9999999='000 000 000,00000' (decsep=',' dig3sep=' ');
run ;


data encours;
  input montant;
  format montant frmt_num_spac_comma.;
datalines; 
123456.12345 
;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 10:36:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393818#M66334</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-07T10:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393838#M66335</link>
      <description>&lt;P&gt;thanks a lot RW9.&lt;/P&gt;&lt;P&gt;may I ask an added question.&lt;/P&gt;&lt;P&gt;I try to export the amount into excel via ODS and proc report.&lt;/P&gt;&lt;P&gt;I specified this &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; montant / &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;frmt_num_spac_comma.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;but&amp;nbsp;in excel I get a character column. what should I specify into this line above to get a numeric.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;thanks&amp;nbsp;a lot&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 11:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393838#M66335</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-09-07T11:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393839#M66336</link>
      <description>&lt;P&gt;Think we covered this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-EXCELXP-proc-report-maintain-numerci-format/m-p/393614#M19259" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-EXCELXP-proc-report-maintain-numerci-format/m-p/393614#M19259&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Its an Excel issue, Excel reads the tagset created by SAS and processes it. &amp;nbsp;If you have the format in Excel and it is in Normal.dot - this is the base file Excel uses, then you should be able to apply it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 11:57:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393839#M66336</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-07T11:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393843#M66337</link>
      <description>&lt;P&gt;thanks but I created the format # ##0,00000 in excel and by doing&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)={tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:# ##0,00000'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;}&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;I get 225 353,74 (only two deci)&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't succeed to get in excel a number format like &amp;nbsp;225 353,73804&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393843#M66337</guid>
      <dc:creator>Nasser_DRMCP</dc:creator>
      <dc:date>2017-09-07T12:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393846#M66338</link>
      <description>&lt;P&gt;That format doesn't seem to work in Excel. &amp;nbsp;Also note you need to save it in your normal.dot file. &amp;nbsp;Anyways, this is outside the scope of a SAS forum. &amp;nbsp;Best check an Office forum for setting up and using custom formats across files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 12:21:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393846#M66338</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-09-07T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: proc format text instead of numeric</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393874#M66339</link>
      <description>&lt;PRE&gt;
Try NLNUM.  format.


  format montant nlnum32.5;



&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 13:57:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-format-text-instead-of-numeric/m-p/393874#M66339</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-07T13:57:58Z</dc:date>
    </item>
  </channel>
</rss>

