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
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.