Usage Note 37566: An error occurs when you export data to Microsoft Excel with the EXPORT procedure
When you export data to Microsoft Excel with PROC EXPORT, you can receive the following error:
ERROR: Open table: Unable to open rowset
WARNING: Table _IMEX_."tablename$" has not been dropped.
ERROR: There was a problem removing the original table (tablename).
See Log for details.
The problem can occur when the previous procedure has not completed before PROC EXPORT executes. For example, suppose that you submit the following program:
proc summary data=merger sum;
by company_cd strata;
var avg_summer_kwh;
output out=outstats sum=;
proc export data=outstats outfile="your-file.xls"
dbms=excel replace;
sheet='your-sheet';
run;
To circumvent the problem, you must add a RUN and a QUIT statement before the PROC EXPORT statement to stop the SUMMARY procedure before PROC EXPORT is executed, as shown in this example:
proc summary data=merger sum;
by company_cd strata;
var avg_summer_kwh;
output out=outstats sum=;
run;
quit;
proc export data=outstats outfile="your-file.xls"
dbms=excel replace;
sheet='your-sheet';
run;
Operating System and Release Information
| SAS System | N/A | Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 | |
| Windows Vista | 9.1 TS1M3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
The following error occurs when you use PROC EXPORT to export data to Excel:
Open table: Unable to open rowset errors when exporting to Excel file
| Date Modified: | 2009-10-29 10:27:38 |
| Date Created: | 2009-10-23 12:00:02 |