SUPPORT / SAMPLES & SAS NOTES
 

Support

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

DetailsHotfixAboutRate It

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

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft Windows XP Professional2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows NT Workstation2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows Server 2003 Standard Edition2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows 2000 Server2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows Server 2003 Datacenter Edition2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows 2000 Advanced Server2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows 2000 Datacenter Server2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows Server 2003 Enterprise Edition2.12.19.1 TS1M3 SP19.1 TS1M3 SP1
Microsoft Windows 2000 Professional2.12.19.1 TS1M3 SP19.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.