Problem Note 47830: Zero observations are read when you use the RANGE= option with the XLSX engine
When you use the IMPORT procedure (PROC IMPORT) with the XLSX engine and the RANGE= option, it is possible that zero observations are read. The problem occurs even when there is data present in the sheet, as shown in this example below:
proc import datafile = "c:\myexcel.xlsx"
out = col_names
dbms = xlsx
replace;
range = 'excel table$A1:A6';
run;
NOTE: The import data set has 0 observations and 1 variables.
NOTE: WORK.COL_NAMES data set was successfully created.
NOTE: PROCEDURE IMPORT used (Total process time):
real time 0.04 seconds
cpu time 0.03 seconds
The problem occurs when the sheet name contains the word EXCEL and a space. To resolve the problem, change the sheet name so that it does not contain the word EXCEL with a space.
Operating System and Release Information
| SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows Server 2003 for x64 | 9.3 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.3 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.3 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.3 TS1M0 | |
| Microsoft® Windows® for x64 | 9.3 TS1M0 | |
| 64-bit Enabled HP-UX | 9.3 TS1M0 | |
| 64-bit Enabled Solaris | 9.3 TS1M0 | |
| HP-UX IPF | 9.3 TS1M0 | |
| Windows Vista for x64 | 9.3 TS1M0 | |
| 64-bit Enabled AIX | 9.3 TS1M0 | |
| Windows 7 Ultimate 32 bit | 9.3 TS1M0 | |
| Windows 7 Professional x64 | 9.3 TS1M0 | |
| Windows 7 Professional 32 bit | 9.3 TS1M0 | |
| Windows 7 Home Premium x64 | 9.3 TS1M0 | |
| Windows 7 Home Premium 32 bit | 9.3 TS1M0 | |
| Windows 7 Enterprise x64 | 9.3 TS1M0 | |
| Windows 7 Enterprise 32 bit | 9.3 TS1M0 | |
| Microsoft Windows XP Professional | 9.3 TS1M0 | |
| Microsoft Windows Server 2008 for x64 | 9.3 TS1M0 | |
| Microsoft Windows Server 2008 | 9.3 TS1M0 | |
| Windows Vista | 9.3 TS1M0 | |
| Windows 7 Ultimate x64 | 9.3 TS1M0 | |
| Linux | 9.3 TS1M0 | |
| Linux for x64 | 9.3 TS1M0 | |
| Solaris for x64 | 9.3 TS1M0 | |
*
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.
When you import XLSX files using the XLSX engine and the RANGE= option, zero observations are read. The problem occurs when the word EXCEL is part of the sheet name.
| Type: | Problem Note |
| Priority: | high |
| Date Modified: | 2012-09-14 13:05:18 |
| Date Created: | 2012-09-06 16:24:15 |