Usage Note 19068: PROC IMPORT of Excel file created by Lotus Notes XML code returns
"External table is not in the expected format" error
Using PROC IMPORT with a DBMS=Excel to read an Excel file that was
created using Lotus Notes XML code, the following error can occur:
PROC IMPORT OUT= registration
DATAFILE="c:\myfile.xls"
DBMS=EXCEL2000 REPLACE;
sheet="SheetName";
GETNAMES=YES ;
MIXED=YES;
SCANTEXT=YES;
USEDATE=YES;
SCANTIME=YES;
RUN;
ERROR: Connect: External table is not in the expected format.
ERROR: Error in the LIBNAME statement.
Connection Failed. See log for details.
NOTE: The SAS System stopped processing this step because of errors.
Even though the Excel filename has the .xls extension, it is an XML
file, which PROC IMPORT does not recognize.
Users can open the file in Excel and use the File - Save As menu to save
the file as a Microsoft Excel Workbook *.xls and then use PROC IMPORT to
read the new file into SAS.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows NT Workstation | 9.1 TS1M3 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 | |
| Microsoft Windows XP Professional | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
| Microsoft Windows 2000 Professional | 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.
| Type: | Usage Note |
| Priority: | low |
| Date Modified: | 2006-12-14 12:46:26 |
| Date Created: | 2006-11-28 15:11:22 |