BookmarkSubscribeRSS Feed
阚益凡
Calcite | Level 5

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. 

picture 1picture 1

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:

_1-1708515099447.png

Tks a lot!!!

 

 

 

 

8 REPLIES 8
JosvanderVelden
SAS Super FREQ

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;
阚益凡
Calcite | Level 5
Still not, both of them have the same error message as the picture shows.
JosvanderVelden
SAS Super FREQ
Are you using SAS Studio or SAS DMS or other?
Is this a local installation (on your windows workstation / laptop)?
阚益凡
Calcite | Level 5
SAS with DBCS on my laptop
I am not sure if any fonts are missing when installing it, or could it be some other mistakes?
JosvanderVelden
SAS Super FREQ

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;
阚益凡
Calcite | Level 5

ok, but it's a little bit long, so I cut it in a txt file

JosvanderVelden
SAS Super FREQ
You are running a very old version of SAS (SAS9.4 M2 - released in 2014). Your steps to update the fonts should have worked. But I do not have access to the old SAS version for testing. I suggest you: a) contact sas technical support (https://service.sas.com/csm - get help) and open a request for support; or b) reinstall SAS using a software depot with the latest release, SAS9.4 M8.

SAS Innovate 2025: Register Now

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!

Mastering the WHERE Clause in PROC SQL

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.

Discussion stats
  • 8 replies
  • 1578 views
  • 0 likes
  • 2 in conversation