<?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 rounding over 1 million in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609109#M177316</link>
    <description>I tried adding a format to the define statement but it didn't change the excel output&lt;BR /&gt;&lt;BR /&gt;define DENFI_Prem_Curr /analysis 'FI*Den' Format=DOLLAR9.2 style=[WIDTH=.9IN tagattr="format:$#,##0.00;[Red]\(#,##0.00\)" ]&lt;BR /&gt;style(header)={BACKGROUND=VERY LIGHT moderate green};</description>
    <pubDate>Tue, 03 Dec 2019 16:10:01 GMT</pubDate>
    <dc:creator>LuAnnS</dc:creator>
    <dc:date>2019-12-03T16:10:01Z</dc:date>
    <item>
      <title>Proc Report rounding over 1 million</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609078#M177308</link>
      <description>&lt;P&gt;I'm having trouble with proc report.&amp;nbsp; I run a proc sort, set my options then run a proc report on a dataset that has all numbers previously rounded in an earlier step (= round(field_name * factor,.01);).&amp;nbsp; I can see in the dataset what the pennies are.&amp;nbsp; If I export the dataset to excel, I have the same pennies.&amp;nbsp; &amp;nbsp; When i run proc report though, all calculated amounts over one million are rounding the pennies to the nearest tenth.&amp;nbsp; It's not doing this to numbers under one million.&amp;nbsp; I'm writing my code in SAS EG 7.15 HF7 (7.100.5.6177) (32-bit).&amp;nbsp; Is this an issue anyone else has found?&amp;nbsp; Am I using the wrong options, tags or attributes?&amp;nbsp; it's a very complex program so i'm trying to pull out part of the code that might be helpful.&amp;nbsp; Thanks in advance for any thoughts/ideas you might have&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;&lt;P&gt;OPTIONS MISSING=' ' nobyline bottommargin=.1IN topmargin=.1IN leftmargin=.1IN rightmargin=.1IN;&lt;BR /&gt;Ods tagsets.excelxp options (sheet_name='National Detail' ORIENTATION="LANDSCAPE" embedded_titles = "yes"&lt;BR /&gt;frozen_headers = '4' row_repeat = '1-4' skip_space='1,1,0,1,1' Center_Horizontal= 'yes'&lt;BR /&gt;autofit_height='yes');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;define field_name /analysis 'field*title' style=[WIDTH=.7IN tagattr="format:$#,##0;[Red]\(#,##0\)" ]&lt;BR /&gt;style(header)={BACKGROUND=VERY LIGHT moderate green};&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2019 15:13:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609078#M177308</guid>
      <dc:creator>LuAnnS</dc:creator>
      <dc:date>2019-12-03T15:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report rounding over 1 million</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609109#M177316</link>
      <description>I tried adding a format to the define statement but it didn't change the excel output&lt;BR /&gt;&lt;BR /&gt;define DENFI_Prem_Curr /analysis 'FI*Den' Format=DOLLAR9.2 style=[WIDTH=.9IN tagattr="format:$#,##0.00;[Red]\(#,##0.00\)" ]&lt;BR /&gt;style(header)={BACKGROUND=VERY LIGHT moderate green};</description>
      <pubDate>Tue, 03 Dec 2019 16:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609109#M177316</guid>
      <dc:creator>LuAnnS</dc:creator>
      <dc:date>2019-12-03T16:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report rounding over 1 million</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609115#M177317</link>
      <description>&lt;P&gt;A format of DOLLAR9.2 will not have room for numbers over 1 million.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would require a format width of 13 characters.&lt;/P&gt;
&lt;PRE&gt;59    data _null_;
60      input ;
61      list;
62    cards;

RULE:       ----+----1----+----2----+----3----+----4
63          $1,000,000.23
&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Dec 2019 16:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-rounding-over-1-million/m-p/609115#M177317</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-12-03T16:25:21Z</dc:date>
    </item>
  </channel>
</rss>

