Problem Note 45104: Adding inline formatting to the LABEL statement with PROC PRINT renders the XML file unreadable in Excel
Adding inline formatting to the LABEL statement with PROC PRINT renders an invalid XML file when generated with the ExcelXP tagset in SAS® 9.1.3. When adding the inline formatting to the LABEL statement, null characters are added to the header and data values, rendering the XML file unreadable in Excel.
There is currently no circumvention for this problem.
The example below replicates the behavior.
ods escapechar='~';
ods listing close;
ods tagsets.excelxp file='c:\class.xls' style=sansPrinter;
proc print data=sashelp.class label noobs;
label height = 'g/cm3'
weight = '~S={foreground=red} test';
run;
quit;
ods _all_ close;
Operating System and Release Information
SAS System | Base SAS | Tru64 UNIX | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Solaris for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
OpenVMS Alpha | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Linux on Itanium | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Linux | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows NT Workstation | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP4 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
HP-UX IPF | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
64-bit Enabled Solaris | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
64-bit Enabled HP-UX | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
64-bit Enabled AIX | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Windows Vista for x64 | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
z/OS | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Windows Vista | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows XP Professional | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP4 | 9.2 TS2M3 |
*
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.
Adding inline formatting to the LABEL statement with PROC PRINT renders the XML file generated with the ExcelXP tagset unreadable in Excel.
Type: | Problem Note |
Priority: | high |
Date Modified: | 2011-12-20 11:17:21 |
Date Created: | 2011-12-10 19:50:11 |