I've encountered an error when using ods to produce an output in rtf.
I tried to analyse a data set called marine, and I wanted to deliver the result to the ods to produce a rtf as the book said. However, I discovered the EMF driver cannot find the fonts in my SAS, as picture 1 indicates.
I tried to reload the fonts in my SAS, and do as SAS support said on https://support.sas.com/kb/15/682.html , just remove the old fonts and reinstalled the fonts from the zip. However, this still cannot work.
So now I don't know what to do with this, please help!!
Here are the code:
ods rtf file='D:\Marine.rtf'
bodytitle
/*columns=*/
sasdate
style=normal
startpage=no;
ods noproctitle;
proc means data=sasbook.marine
mean max min
maxdec=2;
class family;
title 'Whales and Sharks';
run;
proc print data=sasbook.marine;
format length 8.2;
run;
ods rtf close;
And the result viewer is fine:
Tks a lot!!!
Can you replace the single quotes with double quotes. or copy the code below and run that?
ods rtf file="filepath.rtf"
bodytitle
sasdate
style=rtf
startpage=no;
ods noproctitle;
proc means data=sasbook.marine
mean max min
maxdec=2;
class family;
title "Whales and Sharks";
run;
proc print data=sasbook.marine;
format length 8.2;
run;
ods rtf close;
Please run the code below and post the log.
%put &sysscpl;
%put &sysvlong;
proc options option=SASUSER; run;
proc options option=CONFIG; run;
proc options option=JREOPTIONS; run;
proc options option=SASHELP; run;
proc options option=FONTSLOC; run;
ok, but it's a little bit long, so I cut it in a txt file
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.
Find more tutorials on the SAS Users YouTube channel.