Usage Note 12637: Changes in PROC EXPORT for an Excel file when using REPLACE in SAS 9
In SAS 8.2, using PROC EXPORT to write a SAS data set to an Excel file,
and that Excel file exists, the entire Excel file is replaced when code
similar to this is used:
PROC EXPORT DATA= WORK.TEST
OUTFILE= "c:\my documents\mydata.xls"
DBMS=EXCEL2000 REPLACE;
RUN;
Beginning with SAS 9.0, the Export Procedure supports writing to a
specific worksheet in an existing Excel workbook file using the
following code:
PROC EXPORT DATA= SASHELP.Class
OUTFILE= "C:\export class.xls"
DBMS=EXCEL REPLACE;
SHEET="class";
RUN;
The following processing will take place in SAS 9.0:
1 - If the worksheet 'class' exists, only that worksheet in the Excel
workbook file will be replaced.
2 - If the worksheet 'class' does not exist, it will be added to the
Excel workbook.
The remainder of the workbook file (C:\export class.xls)
will not be changed.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
*
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.
Date Modified: | 2004-08-20 09:32:46 |
Date Created: | 2004-06-17 14:58:11 |