<?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: Import to excel using ods with two decimal places in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793086#M254140</link>
    <description>&lt;P&gt;Formats do not round, thy just "display rounded".&lt;/P&gt;
&lt;P&gt;Use Round() function, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;round(sum(a.EXP_PIERWOTNA_NETTO), 0.01)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jan 2022 10:10:02 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2022-01-28T10:10:02Z</dc:date>
    <item>
      <title>Import to excel using ods with two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793080#M254139</link>
      <description>&lt;P&gt;I would like my data that is created in SAS to be imported into Excel rounded to two decimal places, I tried with proc export, now by ods excel, but still the numbers have many decimal places. these are my codes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
    create table COREP_CR_&amp;amp;gv_tbl_date as
	select distinct
	a.DATA_DANYCH as REPORTING_DATE,
	"" as ID,
	sum(a.EXP_PIERWOTNA_NETTO) as  EAD_PRE_CCF format=9.2,
    sum(a.KOREKTA) as  PROVISION format=9.2,
	group by 
	a.EXP_PIERWOTNA_NETTO
	a.KOREKTA
	;
	quit;
ods excel file="&amp;amp;glb_path2./reports/mth_ak/COREP_CR_&amp;amp;gv_tbl_date..xlsx" 
;
 
proc print data=COREP_CR_&amp;amp;gv_tbl_date; 
run;
 
ods excel close;&lt;/PRE&gt;</description>
      <pubDate>Fri, 28 Jan 2022 08:22:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793080#M254139</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2022-01-28T08:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: Import to excel using ods with two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793086#M254140</link>
      <description>&lt;P&gt;Formats do not round, thy just "display rounded".&lt;/P&gt;
&lt;P&gt;Use Round() function, e.g.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;round(sum(a.EXP_PIERWOTNA_NETTO), 0.01)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 10:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793086#M254140</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2022-01-28T10:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Import to excel using ods with two decimal places</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793095#M254143</link>
      <description>Thanks ! its working ! I have last quesiton, can i use proc export and use dbms like xlsx or keep ods excel ?</description>
      <pubDate>Fri, 28 Jan 2022 10:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Import-to-excel-using-ods-with-two-decimal-places/m-p/793095#M254143</guid>
      <dc:creator>Gieorgie</dc:creator>
      <dc:date>2022-01-28T10:31:59Z</dc:date>
    </item>
  </channel>
</rss>

