<?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 export Excel issue with decimals in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272227#M54157</link>
    <description>&lt;PRE&gt;
If you have to use PROC EXPORT, you could make a new CHARACTER variable to hold numeric number via put(var,f8.2).

Or you could try ODS EXCEL or ODS TAGSETS.EXCELXP .



ods excel file='/folders/myfolders/x.xlsx';
proc report data=sashelp.class nowd;
define weight/style={tagattr="format:####.00"};
run;
ods excel close;
 
&lt;/PRE&gt;</description>
    <pubDate>Sat, 21 May 2016 06:43:18 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-05-21T06:43:18Z</dc:date>
    <item>
      <title>proc export Excel issue with decimals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272012#M54110</link>
      <description>&lt;P&gt;proc export data=output_xlsd&lt;BR /&gt;dbms=xlsx&lt;BR /&gt;outfile="&amp;amp;Outdir./XYZ.xlsx"&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;XYZ.xlsx is not retaining decimal points while exporting (Ex : 0.00 is showing as 0 , 149.00 is showing as 149)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to add format in the datastep before exporting. It is not retaining from the dataset . IS there any other way to retain the decimals?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 15:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272012#M54110</guid>
      <dc:creator>SASAna</dc:creator>
      <dc:date>2016-05-20T15:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc export Excel issue with decimals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272091#M54124</link>
      <description>&lt;P&gt;Try&amp;nbsp;ODS EXCEL or the older ODS TAGSETS.EXCELXP rather than PROC EXPORT? &amp;nbsp;ODS gives you a lot of flexibility with respect to formatting your output.&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 18:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272091#M54124</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-05-20T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc export Excel issue with decimals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272106#M54127</link>
      <description>&lt;P&gt;Few years ago we could write DDE commands to format an Excel sheet from SAS&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P align="LEFT"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="LEFT"&gt;data _null_;&lt;/P&gt;
&lt;P align="LEFT"&gt;file DDEcmds;&lt;/P&gt;
&lt;P align="LEFT"&gt;put '[font.properties("Verdana","Bold",16,,,,,,,3)]';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It no longer works now.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 19:25:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272106#M54127</guid>
      <dc:creator>nketata</dc:creator>
      <dc:date>2016-05-20T19:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc export Excel issue with decimals</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272227#M54157</link>
      <description>&lt;PRE&gt;
If you have to use PROC EXPORT, you could make a new CHARACTER variable to hold numeric number via put(var,f8.2).

Or you could try ODS EXCEL or ODS TAGSETS.EXCELXP .



ods excel file='/folders/myfolders/x.xlsx';
proc report data=sashelp.class nowd;
define weight/style={tagattr="format:####.00"};
run;
ods excel close;
 
&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 May 2016 06:43:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-export-Excel-issue-with-decimals/m-p/272227#M54157</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-05-21T06:43:18Z</dc:date>
    </item>
  </channel>
</rss>

