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
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: