Usage Note 56543: The Excel worksheet name tab does not remove the prefix from the BY-group value when the SHEET_LABEL= option is set to a blank with ODS EXCEL
When you generate output using the ODS destination for Excel and you specify both the SHEET_LABEL=" " and the SHEET_INTERVAL="BYGROUP" options, the BY-group value that is used as a part of the Excel worksheet name is prefixed by the text "ByGroup" and the number of the BY group.
To retain only the BY-group value as the worksheet name on the tab, replace the SHEET_LABEL= option with the SHEET_NAME="#BYVAL(BY-group variable)" option. The sample code below illustrates this:
ods excel file='c:\Class.xlsx'
options(sheet_interval="bygroup"
sheet_name="#byval(sex)");
proc sort data=sashelp.class out=class;
by sex;
run;
proc print data=class;
by sex;
run;
ods excel close;
Operating System and Release Information
SAS System | Base SAS | Solaris for x64 | 9.4 TS1M3 | |
Linux for x64 | 9.4 TS1M3 | |
HP-UX IPF | 9.4 TS1M3 | |
64-bit Enabled Solaris | 9.4 TS1M3 | |
64-bit Enabled AIX | 9.4 TS1M3 | |
Windows 7 Ultimate x64 | 9.4 TS1M3 | |
Windows 7 Ultimate 32 bit | 9.4 TS1M3 | |
Windows 7 Professional x64 | 9.4 TS1M3 | |
Windows 7 Professional 32 bit | 9.4 TS1M3 | |
Windows 7 Home Premium x64 | 9.4 TS1M3 | |
Windows 7 Home Premium 32 bit | 9.4 TS1M3 | |
Windows 7 Enterprise x64 | 9.4 TS1M3 | |
Windows 7 Enterprise 32 bit | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Std | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Std | 9.4 TS1M3 | |
Microsoft Windows Server 2012 R2 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2012 Datacenter | 9.4 TS1M3 | |
Microsoft Windows Server 2008 for x64 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 R2 | 9.4 TS1M3 | |
Microsoft Windows Server 2008 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8.1 Pro | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8.1 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Pro x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Pro 32-bit | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise x64 | 9.4 TS1M3 | |
Microsoft Windows 8 Enterprise 32-bit | 9.4 TS1M3 | |
Microsoft® Windows® for x64 | 9.4 TS1M3 | |
Z64 | 9.4 TS1M3 | |
z/OS | 9.4 TS1M3 | |
*
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.
Date Modified: | 2015-09-18 15:59:12 |
Date Created: | 2015-09-03 12:44:03 |