Problem Note 17270: Style not applied properly when sending ODS HTML output via email
In SAS® 9.1, the HTML destination generates HTML 4.0 by default. Prior to SAS® 9.1 HTML 3.2 was generated by default. Due to this change, the style formatting is not always applied properly in the email due to the process in which ODS HTML streams
output to the email access method.
To circumvent the problem in SAS® 9.1 you can do one of the following:
- Change ODS to use HTML3. To do this any "ods html ..." line should
be changed to "ods html3 ..."
Example:
ods html3 file=elecmail style=festival;
proc report data=sashelp.class nowd;
run;
ods html3 close;
- Save the ODS HTML output to a file and send it as an attachment.
Select the Hot Fix tab in this note to access the hot fix for this issue if you are running SAS® 9.1.
In SAS® 9.2 and higher, using ODS HTML to directly route email may result in the style being applied, but extra gridlines may appear in the output. In order to prevent these extraneous gridlines, use the MSOFFICE2K tagset:
ods msoffice2k file=elecmail style=festival;
proc report data=sashelp.class nowd;
run;
ods msoffice2k close;
Operating System and Release Information
SAS System | Base SAS | Microsoft Windows XP Professional | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Tru64 UNIX | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows NT Workstation | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Server | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
64-bit Enabled Solaris | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
z/OS | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Linux | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
Linux on Itanium | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
HP-UX IPF | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
64-bit Enabled HP-UX | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
64-bit Enabled AIX | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
OpenVMS Alpha | 9.1 TS1M3 | 9.1 TS1M3 SP4 |
*
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: | Problem Note |
Priority: | medium |
Topic: | Third Party ==> Information Exchange ==> E-mail (SMTP)
|
Date Modified: | 2006-05-19 10:21:00 |
Date Created: | 2006-03-16 10:51:27 |