09-02-2011 02:00 AM
I'm running 9.3 64bit and office 2010 32bit
When I run proc export I get this:
19 proc export data=sashelp.shoes outfile="filename.xls" dbms=excelcs replace;
ERROR: CLI error trying to establish connection: [Microsoft][ODBC Excel Driver]General error Unable to open registry key Temporary (volatile) Ace DSN for process 0x1b28
Thread 0x1040 DBC 0x2f2e004
I quick search shows this error to be quite common but no one seems to have soluttion.
I have the PC files server 32bit installed and 2010 Office System Driver: Data Connectivity Components (ACE) installed.
09-04-2011 11:19 PM
Now it gets interesting:
I tried changing the outfile="filename.xls" to outfile="filename.xlsx"
Now it appears to work but creates a file named filename.xls NOT filename.xlsx which can be opened in Excel but is actuallu an xlsb format file.
09-08-2011 09:24 PM
I think I have cracked it! You need to use the full path of the input/output files.
proc export data=sashelp.shoes outfile="c:\somedir\filename.xls" dbms=excelcs replace;
Its implied in the docs but not that its required.
09-13-2011 08:59 PM
FWIW: You're not alone in this .. we've all run into the same problems .. but DON'T have an answer. To the contrary, I'm sure that many of us (I can only speak for one of course) have been hoping that someone from SAS would chime in with the obvious, simple solution.
05-15-2014 01:06 PM
PROC EXPORT DBMS=XLSX
Command writes files directly in xlsx format without the need for PC Files Server. I tried it and works fine now, Chris Hemdinger explains in the link below.