Problem Note 10832: "ERROR: Invalid Sequence of Commands" generated from DATA Step when
creating a SAS data set from an Excel worksheet using the LIBNAME engine
for Excel
After accessing an Excel workbook using the LIBNAME engine for Excel,
you can create a SAS dataset from a worksheet using PROC SQL CREATE
TABLE statements. For example,
libname myxls excel 'c:\my documents\myfile.xls' mixed=yes;
proc sql;
create table x as
select *
from myxls.'Sheet1$'n;
quit;
However, when using a DATA Step to create a SAS data set from the
same Excel worksheet, you may receive the following error:
data x;
set myxls.'Sheet1$'n;
run;
ERROR: Invalid sequence of commands for file myxls.'Sheet1$'n.DATA.
The current workaround for this problem is to use the PROC SQL CREATE
TABLE statement to create the SAS data set from the Excel worksheet.
The problem has been corrected in SAS 9.1.
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows XP Professional | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows 2000 Server | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows NT Workstation | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | 9.1 TS1M0 |
Microsoft Windows 2000 Professional | 9 TS M0 | 9.1 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.
Type: | Problem Note |
Priority: | medium |
Date Modified: | 2004-05-06 13:36:25 |
Date Created: | 2003-09-15 14:15:15 |