SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 51691: SAS® VIEWTABLE does not display an Excel sheet that is accessed using a LIBNAME statement

DetailsAboutRate It

When you assign a LIBNAME statement to an Excel file using Windows SAS® 9.4 TS1M0 and 64-bit Excel, the individual sheet names might not show up in the SAS Explorer, and this error occurs:

The table libref."Sheet1$"n either does not exist or cannot be displayed. Would you like to choose a different table to display?

For example, the error occurs when you submit libname x 'c:\myfiles\myfile.xlsx'; and then double-click any sheet name to open it in VIEWTABLE.

The problem is not with the Excel file itself. (The Excel data can be seen with the PRINT procedure and read into a SAS data set.) The problem occurs because the Excel sheet name contains the special character $, which is not allowed in SAS names. To circumvent the problem, submit options validmemname=extend; before opening a table in the VIEWTABLE.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/ACCESS Interface to PC FilesMicrosoft® Windows® for x649.49.4 TS1M0
Microsoft Windows 8 Enterprise 32-bit9.49.4 TS1M0
Microsoft Windows 8 Enterprise x649.49.4 TS1M0
Microsoft Windows 8 Pro 32-bit9.49.4 TS1M0
Microsoft Windows 8 Pro x649.49.4 TS1M0
Microsoft Windows 8.1 Enterprise 32-bit9.49.4 TS1M0
Microsoft Windows 8.1 Enterprise x649.49.4 TS1M0
Microsoft Windows 8.1 Pro9.49.4 TS1M0
Microsoft Windows 8.1 Pro 32-bit9.49.4 TS1M0
Microsoft Windows Server 2008 R29.49.4 TS1M0
Microsoft Windows Server 2008 for x649.49.4 TS1M0
Microsoft Windows Server 2012 Datacenter9.49.4 TS1M0
Microsoft Windows Server 2012 R2 Datacenter9.49.4 TS1M0
Microsoft Windows Server 2012 R2 Std9.49.4 TS1M0
Microsoft Windows Server 2012 Std9.49.4 TS1M0
Windows 7 Enterprise x649.49.4 TS1M0
Windows 7 Professional x649.49.4 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.