<?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 to Excel now loses currency format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42182#M10935</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LIBNAME method can be made to work using the MSENGINE option on the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;LIBNAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; WrkBk EXCEL &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'mytestfileJET.xls'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; VER=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;2000&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; MSENGINE=JET ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; wrkbk.shoes01;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sashelp.shoes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; wrkbk;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Aug 2011 12:48:37 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2011-08-04T12:48:37Z</dc:date>
    <item>
      <title>Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42178#M10931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Several of our most-used programs include statements to export to Excel, similar to this:&lt;/P&gt;&lt;P&gt;proc export data = mytable&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;outfile="c:\mypath\myfile.xls"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;dbms=excel2000 replace;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sheet=exported;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data sets often contain numeric fields that are formatted in SAS as currency, most commonly "Dollar17.2".&amp;nbsp; In the past, the export has worked fine, and the resulting spreadsheet has columns formatted as currency where the SAS data was formatted that way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently upgraded from SAS 9.2 TS1M0 to 9.2 TS2M3 as our department's guinea pig, and now when I run the same proc export statements, the columns that are formatted in SAS as Dollar17.2 come into Excel unformatted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have also tried exporting using a libname / data step, like this&lt;/P&gt;&lt;P&gt;LIBNAME &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;WrkBk &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;EXCEL &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;'c:\myfolder\myfile.xls' &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;VER=2000;&lt;/P&gt;&lt;P&gt;Data wrkbk.tabname;&lt;/P&gt;&lt;P&gt;format (list of columns and formats) ;&lt;/P&gt;&lt;P&gt;set mytable;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but alas, this also does not work.&amp;nbsp; And I've tried playing with the Excel version (2000/2003/2007) to no success.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a hot fix I'm not aware of that could remedy this situation?&amp;nbsp; Any other advice?&amp;nbsp; If I can't get this to work, I can't recommend my co-workers upgrade to TS2M3, which we REALLY want to do so we can export some of our larger data sets into Excel (now with over one milllion rows in 2007/2010) rather than Access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;James Wilson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Aug 2011 21:59:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42178#M10931</guid>
      <dc:creator>JSWilson64</dc:creator>
      <dc:date>2011-08-03T21:59:30Z</dc:date>
    </item>
    <item>
      <title>Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42179#M10932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you contacted tech support?&amp;nbsp; This is something that they ought to know about to get it into the fix list.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 00:40:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42179#M10932</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-08-04T00:40:39Z</dc:date>
    </item>
    <item>
      <title>Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42180#M10933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try ods tagsets.excelxp or other ods destinations?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 10:13:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42180#M10933</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-08-04T10:13:28Z</dc:date>
    </item>
    <item>
      <title>Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42181#M10934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It appears to work correctly with dbms=xls, but it does appear to be something that tech support should quickly be brought to the attention of tech support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42181#M10934</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-04T12:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42182#M10935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The LIBNAME method can be made to work using the MSENGINE option on the LIBNAME statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;LIBNAME&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; WrkBk EXCEL &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: purple; font-family: 'Courier New'; background-color: white;"&gt;'mytestfileJET.xls'&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; VER=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;2000&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; MSENGINE=JET ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;Data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; wrkbk.shoes01;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; sashelp.shoes;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;libname&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; wrkbk;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 12:48:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42182#M10935</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-08-04T12:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42183#M10936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried it using the ODS ExcelXP tagset - we have had mixed results using this method, and it would require rewriting a lot of programs to implement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:44:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42183#M10936</guid>
      <dc:creator>JSWilson64</dc:creator>
      <dc:date>2011-08-04T13:44:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42184#M10937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, that works, so it's a start.&amp;nbsp; We would prefer to use Proc Export but this could be the way we have to go with 9.2 phase 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be contacting tech support to see if they're aware of the issue.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:45:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42184#M10937</guid>
      <dc:creator>JSWilson64</dc:creator>
      <dc:date>2011-08-04T13:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42185#M10938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you would prefer to use proc import, as I mentioned in a previous response, use proc import with DBMS=xls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 13:56:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42185#M10938</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-08-04T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Proc export to Excel now loses currency format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42186#M10939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks - I had tried that method but it didn't work.&amp;nbsp; It helps if you spell everything correctly.&amp;nbsp; :smileylaugh:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tried it again and it preserved the currency formats.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Aug 2011 14:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-export-to-Excel-now-loses-currency-format/m-p/42186#M10939</guid>
      <dc:creator>JSWilson64</dc:creator>
      <dc:date>2011-08-04T14:04:45Z</dc:date>
    </item>
  </channel>
</rss>

