Usage Note 16176: How to specify an Excel worksheet name using the LIBNAME Excel engine
statement
Beginning with SAS 9.0, a libref with the Excel engine can be assigned
to Excel workbook files. After successfully assigning a LIBNAME
statement to an Excel Workbook file using the Excel engine, there are
icons in the library in the SAS Explorer for Worksheet names and Range
names. The objects with names that end with the $ (dollar sign) are
Worksheet names.
To reference the Excel Worksheet name in your SAS code, using the
libref, you must use the n-literal (Name Literal). For example:
libname mylib "C:\My Documents\MyFile.xls";
proc print data=mylib.'Sheet1$'n; run;
data sasuser.new;
set mylib.'Sheet3$'n;
run;
Operating System and Release Information
SAS System | SAS/ACCESS Interface to PC Files | Microsoft Windows NT Workstation | 9 TS M0 | |
Microsoft Windows XP Professional | 9 TS M0 | |
Microsoft Windows 2000 Server | 9 TS M0 | |
Microsoft Windows Server 2003 Datacenter Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Enterprise Edition | 9 TS M0 | |
Microsoft Windows Server 2003 Standard Edition | 9 TS M0 | |
Microsoft Windows 2000 Advanced Server | 9 TS M0 | |
Microsoft Windows 2000 Datacenter Server | 9 TS M0 | |
Microsoft Windows 2000 Professional | 9 TS M0 | |
*
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: | Usage Note |
Priority: | low |
Date Modified: | 2005-11-11 13:31:45 |
Date Created: | 2005-09-16 11:08:21 |