<?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 Please help on formatting a number as 5.2 under proc print in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2426#M1037</link>
    <description>I'm using ods tagsets.excelxp.  When I tried to output a variable with the format 5.2, I got 0.00.&lt;BR /&gt;
&lt;BR /&gt;
Here is the logic:&lt;BR /&gt;
proc print data=test;&lt;BR /&gt;
   var frate/style={tagattr='format:#0.00'};&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I've also tried&lt;BR /&gt;
   var frate/style={tagattr='format:Currency'};&lt;BR /&gt;
&lt;BR /&gt;
just to see if that will work since I saw so many examples in published paper, but I got '$    -  '.&lt;BR /&gt;
&lt;BR /&gt;
I do have the latest ExcelXP, and the other options are all working fine.  Any clue?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
    <pubDate>Tue, 06 Mar 2007 23:49:28 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-03-06T23:49:28Z</dc:date>
    <item>
      <title>Please help on formatting a number as 5.2 under proc print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2426#M1037</link>
      <description>I'm using ods tagsets.excelxp.  When I tried to output a variable with the format 5.2, I got 0.00.&lt;BR /&gt;
&lt;BR /&gt;
Here is the logic:&lt;BR /&gt;
proc print data=test;&lt;BR /&gt;
   var frate/style={tagattr='format:#0.00'};&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I've also tried&lt;BR /&gt;
   var frate/style={tagattr='format:Currency'};&lt;BR /&gt;
&lt;BR /&gt;
just to see if that will work since I saw so many examples in published paper, but I got '$    -  '.&lt;BR /&gt;
&lt;BR /&gt;
I do have the latest ExcelXP, and the other options are all working fine.  Any clue?&lt;BR /&gt;
&lt;BR /&gt;
Thanks!</description>
      <pubDate>Tue, 06 Mar 2007 23:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2426#M1037</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-03-06T23:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Please help on formatting a number as 5.2 under proc print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2427#M1038</link>
      <description>Is the value truly a number?&lt;BR /&gt;
What is the sas format for that variable?&lt;BR /&gt;
&lt;BR /&gt;
It looks like the type is wrong and your value is invalid.&lt;BR /&gt;
&lt;BR /&gt;
You may need to add type:Number to your tagattr settings.</description>
      <pubDate>Wed, 07 Mar 2007 16:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2427#M1038</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2007-03-07T16:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please help on formatting a number as 5.2 under proc print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2428#M1039</link>
      <description>Yes, frate is a number (ratio indeed).&lt;BR /&gt;
&lt;BR /&gt;
I changed the statement to:&lt;BR /&gt;
var frate/style={tagattr='type:Number format:#0.00'}; &lt;BR /&gt;
&lt;BR /&gt;
There is no error message in my log but I could not even load the XML to Excel now.&lt;BR /&gt;
&lt;BR /&gt;
Please advise, and thanks!!</description>
      <pubDate>Wed, 07 Mar 2007 18:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2428#M1039</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-03-07T18:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Please help on formatting a number as 5.2 under proc print</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2429#M1040</link>
      <description>In your original output, without the type,  Can you find the &lt;CELL and=""&gt;&lt;DATA&gt;&lt;BR /&gt;
tags that are for that value?&lt;BR /&gt;
&lt;BR /&gt;
I would like to know what the XML looks like, that the value would show up&lt;BR /&gt;
as - or 0.00.&lt;BR /&gt;
&lt;BR /&gt;
It doesn't make any sense.   Also, if you could email me directly I will send&lt;BR /&gt;
you a new tagset.   I haven't had the chance to put it on the web yet so you &lt;BR /&gt;
can't get it unless I send it to you.   Eric.Gebhart@sas.com&lt;/DATA&gt;&lt;/CELL&gt;</description>
      <pubDate>Wed, 07 Mar 2007 20:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Please-help-on-formatting-a-number-as-5-2-under-proc-print/m-p/2429#M1040</guid>
      <dc:creator>Eric_SAS</dc:creator>
      <dc:date>2007-03-07T20:19:02Z</dc:date>
    </item>
  </channel>
</rss>

