ODS HTML FILE="sample.htm" ;
PROC FORMAT ;
VALUE $links
"F" = 'F'
"M" = 'M'
;
RUN ;
ODS HTML TEXT='' ;
PROC FREQ DATA = sashelp.class ;
TABLE sex ;
FORMAT sex $links. ;
RUN ;
ODS HTML TEXT='' ;
TITLE "Girls" ;
PROC PRINT DATA = sashelp.class NOOBS ;
WHERE sex = "F" ;
RUN ;
ODS HTML TEXT='Back to the top of the page' ;
ODS HTML TEXT='' ;
TITLE "Boys" ;
PROC PRINT DATA = sashelp.class NOOBS ;
WHERE sex = "M" ;
RUN ;
TITLE ;
ODS HTML...Back to the top of the page' ;
ODS HTML CLOSE ;
It works out just fine.
But I ran into problems when I changed the FILE option of my ODS HTML statement for a filename...
FILENAME outbox EMAIL TO="someone@home.fr" SUBJECT="ODS test" ;
ODS HTML FILE = outbox ;
Running that code in Enterprise Guide 4 on Unix sent mails where the internal links (to #girls, #boys, #top) were added a TARGET=_BLANK attribute (weird, isn't it ?).
Except for magic, what could explain that ? I will be working in the same company next Monday, so I can run tests if you have some hints.
Thanks in advance.
Olivier
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.