<?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 report to Excel - numbers get rounded up in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580563#M23163</link>
    <description>&lt;P&gt;PROC REPORT is writing text and ODS EXCEL.XP is converting it into XML that Excel can read.&lt;/P&gt;
&lt;P&gt;You have told Excel how to display the value using the TAGATTR style attribute.&lt;/P&gt;
&lt;P&gt;But you didn't tell PROC REPORT how to format the value when converting the number into text for the report.&lt;/P&gt;
&lt;P&gt;Try adding a FORMAT=14.3 to your DEFINE statement for that column.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Aug 2019 14:32:52 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-08-12T14:32:52Z</dc:date>
    <item>
      <title>Proc report to Excel - numbers get rounded up</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580562#M23162</link>
      <description>&lt;P&gt;I am using&amp;nbsp;ods&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tagsets.ExcelXP to print a report to excel (using xml; below is only a small part of the output, which contains many sheets).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the numbers are large, the numbers get rounded up. Is there a way to prevent this rounding up.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code I'm using -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tagsets.ExcelXP&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;file…&lt;STRONG&gt;\TEST..xml"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style=sansprinter;&lt;/P&gt;&lt;P&gt;ods&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tagsets.ExcelXP options(embedded_titles=&lt;STRONG&gt;'yes'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;embedded_footnotes=&lt;STRONG&gt;'yes'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sheet_name=&lt;STRONG&gt;"TEST1"&lt;/STRONG&gt;sheet_interval=&lt;STRONG&gt;'none'&lt;/STRONG&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;report&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data=A&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nowd&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;split=&lt;STRONG&gt;"*"&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;spanrows&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(header)={just=c background=GGR foreground=black}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(report)={bordercolor=black borderbottomwidth=&lt;STRONG&gt;3&lt;/STRONG&gt;pt borderleftwidth=&lt;STRONG&gt;3&lt;/STRONG&gt;pt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderrightwidth=&lt;STRONG&gt;3&lt;/STRONG&gt;pt};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;column&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NAME SUM;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;define&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;NAME /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;display&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;' '&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style=[just=r cellwidth=&lt;STRONG&gt;2&lt;/STRONG&gt;in];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;define&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;SUM /&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;analysis&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;'SUM'&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;style=[just=l cellwidth=&lt;STRONG&gt;6&lt;/STRONG&gt;in&lt;/P&gt;&lt;P&gt;tagattr=&lt;STRONG&gt;'format:####,###,###.###'&lt;/STRONG&gt;];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;quit&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;ods&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tagsets.ExcelXP&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When the value of&amp;nbsp; SUM in the data file is -371675614.400021&lt;/P&gt;&lt;P&gt;The value printed in the report is -371680000&lt;/P&gt;&lt;P&gt;I tried different formats and the result is the same.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Tali&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 14:28:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580562#M23162</guid>
      <dc:creator>Taliah</dc:creator>
      <dc:date>2019-08-12T14:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to Excel - numbers get rounded up</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580563#M23163</link>
      <description>&lt;P&gt;PROC REPORT is writing text and ODS EXCEL.XP is converting it into XML that Excel can read.&lt;/P&gt;
&lt;P&gt;You have told Excel how to display the value using the TAGATTR style attribute.&lt;/P&gt;
&lt;P&gt;But you didn't tell PROC REPORT how to format the value when converting the number into text for the report.&lt;/P&gt;
&lt;P&gt;Try adding a FORMAT=14.3 to your DEFINE statement for that column.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2019 14:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580563#M23163</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-08-12T14:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc report to Excel - numbers get rounded up</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580729#M23175</link>
      <description>&lt;P&gt;Worked great. Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2019 08:13:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-report-to-Excel-numbers-get-rounded-up/m-p/580729#M23175</guid>
      <dc:creator>Taliah</dc:creator>
      <dc:date>2019-08-13T08:13:37Z</dc:date>
    </item>
  </channel>
</rss>

