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
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.