SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 17270: Style not applied properly when sending ODS HTML output via email

DetailsHotfixAboutRate It

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:

  1. 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;
  2. 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

Product FamilyProductSystemSAS Release
ReportedFixed*
SAS SystemBase SASMicrosoft Windows XP Professional9.1 TS1M39.1 TS1M3 SP4
Tru64 UNIX9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows NT Workstation9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows XP 64-bit Edition9.1 TS1M39.1 TS1M3 SP4
Microsoft® Windows® for 64-Bit Itanium-based Systems9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows Server 2003 Standard Edition9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows Server 2003 Enterprise Edition9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows 2000 Server9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows Server 2003 Datacenter Edition9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows 2000 Datacenter Server9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows 2000 Professional9.1 TS1M39.1 TS1M3 SP4
Microsoft Windows 2000 Advanced Server9.1 TS1M39.1 TS1M3 SP4
64-bit Enabled Solaris9.1 TS1M39.1 TS1M3 SP4
z/OS9.1 TS1M39.1 TS1M3 SP4
Linux9.1 TS1M39.1 TS1M3 SP4
Linux on Itanium9.1 TS1M39.1 TS1M3 SP4
HP-UX IPF9.1 TS1M39.1 TS1M3 SP4
64-bit Enabled HP-UX9.1 TS1M39.1 TS1M3 SP4
64-bit Enabled AIX9.1 TS1M39.1 TS1M3 SP4
OpenVMS Alpha9.1 TS1M39.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.