<?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: Formatting the numbers in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330677#M17884</link>
    <description>&lt;P&gt;Hi, this format has the same problem i mentioned in my&amp;nbsp;initial post. i.e. it works fine when the number is in millions but for numbers&amp;nbsp;in&amp;nbsp;billions all after decimal becomes zeros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone faced this problem before.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 00:16:59 GMT</pubDate>
    <dc:creator>sg_sk</dc:creator>
    <dc:date>2017-02-08T00:16:59Z</dc:date>
    <item>
      <title>Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330661#M17882</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help me with formatting the numbers in millions. I want the&amp;nbsp;numbers outputed to excel and formatted in millions. &amp;nbsp;I used the style = {font_face=Calibri font_size=3 tagattr='format:#,##0.0,,'};The actual number is 32784538360&amp;nbsp; and after running proc report the number displayed in excel as 32,785.0 and when i click the cell the number present in the cell is 32785000000&amp;nbsp;(all zeros for the last 6 digits). (the same style works fine for smaller number 65809794, displayed in excel as 65.8 and on clicking the cell it holds the enitre number 65809794)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the first example(&lt;SPAN&gt;32784538360),&lt;/SPAN&gt;&amp;nbsp;I want the number in the excel to be displayed as 32,784.5. and the cell to have&amp;nbsp;&lt;SPAN&gt;32&lt;/SPAN&gt;&lt;SPAN&gt;784538360. Also the totals and subtotals had the same issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I can't paste the entire code becaseu of the security issues. Thanks for the help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 23:46:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330661#M17882</guid>
      <dc:creator>sg_sk</dc:creator>
      <dc:date>2017-02-07T23:46:08Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330670#M17883</link>
      <description>&lt;P&gt;See the thread and answer here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-tagsets-Excel-Xp-format-question/td-p/327639" target="_blank"&gt;https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-tagsets-Excel-Xp-format-question/td-p/327639&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 23:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330670#M17883</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-02-07T23:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330677#M17884</link>
      <description>&lt;P&gt;Hi, this format has the same problem i mentioned in my&amp;nbsp;initial post. i.e. it works fine when the number is in millions but for numbers&amp;nbsp;in&amp;nbsp;billions all after decimal becomes zeros.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone faced this problem before.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 00:16:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330677#M17884</guid>
      <dc:creator>sg_sk</dc:creator>
      <dc:date>2017-02-08T00:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330681#M17885</link>
      <description>&lt;P&gt;Provide an example dataset in the form of datastep code and the code used to create the output. &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&lt;/A&gt; has instructions on turning a SAS dataset into datastep code that you can paste here in a code box using the {i} or attach as a text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely we only need some examples of that variable and the Proc Print to display that variable but the ODS destination any print options are needed.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 00:36:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330681#M17885</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-02-08T00:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330685#M17886</link>
      <description>&lt;P&gt;The wrong answer is marked as the solution in the topic linked by Reeza.&lt;/P&gt;
&lt;P&gt;The problem with values stored in the Excel is caused by nor telling SAS what format to use to write the numbers. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this data step to see the difference in how SAS would write a value like, 12&lt;SPAN&gt;32784538360, &amp;nbsp;using different formats.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  x=1232784538360;
  put (x x x) (best12. / 15. / comma20.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;So in addition to use the STYLE option to specify how Excel should format the value you need to use a SAS FORMAT.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 01:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330685#M17886</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-02-08T01:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330969#M17896</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code and attached the output excel (also I updated the excel with how&amp;nbsp;actual&amp;nbsp;numbers appear&amp;nbsp;in SAS).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are two varaibles one is sales and the other is return- i tried formatting sales using comma20. best12.and 15. there were no difference in the results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SALESDATA;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SALESDATA;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; SALES &lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;comma20.&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ODS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; TAGSETS.EXCELXP OPTIONS ( Sheet_Name = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;sheetname."&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Absolute_Column_Width = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'20,20,12,12,12,8,8,8,8'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;sheet_interval=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'none'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Orientation = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'portrait'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;HIDDEN_COLUMNS=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'none'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Row_Heights = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'20,20,20,20,20,20,20'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;zoom=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'85'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Center_Horizontal = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'yes'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=cmd.SALESDATA &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;spanrows&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;nowd&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header)={font_weight=bold };&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;column&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; source product sales return ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; source / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&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;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)=Header{vjust=middle just=&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;left&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; font_face=Calibri font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&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;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; product / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Product'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;={font_face=Calibri font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; } ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; sales /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sum&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)={font_face=Calibri font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:#,##0.0,,;-#,##0.0,,;-'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; return /&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;display&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Outstanding'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;sum&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(column)={font_face=Calibri font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:#,##0.0,,;-#,##0.0,,;-'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;RUN&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Note in the excel, the number in millions (8 digits)&amp;nbsp;are displayed correct but the numbers in billions (11 digits) gets zero after decimal places.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330969#M17896</guid>
      <dc:creator>sg_sk</dc:creator>
      <dc:date>2017-02-08T20:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Formatting the numbers</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330976#M17898</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solved it by adding the format in define statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;define sales/display analysis sum &lt;STRONG&gt;format=&lt;/STRONG&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;comma18.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; style(column)={font_face=Calibri font_size=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;3&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt; tagattr=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'format:#,##0.0,,;-#,##0.0,,;-'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 20:36:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formatting-the-numbers/m-p/330976#M17898</guid>
      <dc:creator>sg_sk</dc:creator>
      <dc:date>2017-02-08T20:36:37Z</dc:date>
    </item>
  </channel>
</rss>

