![]() | ![]() | ![]() | ![]() | ![]() |
Beginning with SAS 9.1.3 Service Pack 3 on OpenVMS Alpha, if you append HTML output from the Output Delivery System (ODS) to a file created by a DATA step, incorrect HTML is produced. The underlying issue is that the record type created by ODS is not compatible with the record type created by the DATA step, and as a result the HTML produced by ODS will be incorrect.
The code below replicates this behavior:filename bhtml 'incorrect.html' ; data _NULL_ ; file bhtml ; put '<html>'; put '<head>'; put '<title>Incorrect HTML</title>'; put '</head>'; put '<body>'; run ; ods listing close ; filename bhtml 'incorrect.html' mod ; ods html file=bhtml(notop); proc print data=sashelp.class noobs ; run ; ods html close ; ods listing ;
A hot fix for this issue introduces STREAMLF as a new value for the RECFM= option on the FILENAME statement. This option must be in effect when the HTML output file is created or modified by a DATA step if the file is also to be written to using ODS. After the hot fix is applied, modify the first FILNAME statement above to read:
filename bhtml 'incorrect.html' recfm=streamlf ;
This will produce correct results. This option must be used whenever you mix ODS HTML output with output from a DATA step in a single file.
Select the Hot Fix tab in this note to access the hot fix for this issue.
Product Family | Product | System | SAS Release | |
Reported | Fixed* | |||
SAS System | Base SAS | OpenVMS Alpha | 9.1 TS1M3 SP3 |