Problem Note 18604: SQL errors and other errors can occur when you perform tasks on Excel data that has been stored in a metadata server
SQL errors and other errors can occur when you perform tasks on Excel data that
has been stored in a metadata server. The errors will be similar to the following:
PROC SQL;
CREATE VIEW WORK.SORTTempTableSorted
AS SELECT Age FROM EXCELLIB.Sheet1$;
_
22
_
200
ERROR 22-322: Syntax error, expecting one of the following: a name, ;,
(, ',',
|
This problem occurs because the SAS® Add-In for Microsoft Office is not referring to the sheet name correctly. The sheet should be referred to as follows:
FROM EXCELLIB.'Sheet1$'n;
|
To circumvent the problem, do ONE of the following:
- Open the Excel file directly into Excel.
- Make the data source active without opening it into Excel. You can do this by selecting SAS > Active Data > Select Data Source instead of SAS > Open Data Source > Into Worksheet.
Operating System and Release Information
SAS System | SAS Add-in for Microsoft Office | Microsoft Windows XP Professional | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows NT Workstation | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows Server 2003 Standard Edition | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows 2000 Server | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows Server 2003 Datacenter Edition | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows 2000 Advanced Server | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows 2000 Datacenter Server | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows Server 2003 Enterprise Edition | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
Microsoft Windows 2000 Professional | 2.1 | 2.1 | 9.1 TS1M3 SP1 | 9.1 TS1M3 SP1 |
*
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: | |
Date Modified: | 2007-11-26 08:53:39 |
Date Created: | 2006-09-25 11:52:35 |