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
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.