BookmarkSubscribeRSS Feed
michal_1407
Fluorite | Level 6

Hi,

 

I have problem with one warning: """WARNING: The font <sans-serif> is not available. Albany AMT will be used.""" on SAS server. I understand the problem but how to solve it without Admin rights. any hints?

 

IF I run the following code in EG8, there is no warning:

 

proc univariate data = sashelp.cars noprint;
histogram horsepower ;
title1 j=center height=15pt "title";
inset mean median n / position=nw cfill=ywh;
label horsepower= "sub_title";
run;

NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 0.13 seconds
cpu time 0.14 seconds

 

 

But when I try to export to PDF I get the following warning:

ods graphics on;

ods pdf FILE="/home/aaaa.pdf" style=HTMLBlue ;
ods select Histogram;

proc univariate data = sashelp.cars noprint;
histogram horsepower ;
title1 j=center height=15pt "title";
inset mean median n / position=nw cfill=ywh;
label horsepower= "sub_title";
 run;

WARNING: The font <sans-serif> is not available. Albany AMT will be used.
WARNING: The font <sans-serif> is not available. Albany AMT will be used.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
real time 2.87 seconds
cpu time 0.18 seconds



 

 

 

 

3 REPLIES 3
yabwon
Meteorite | Level 14

The font may be not registered. Probably running Proc Fontreg may help: https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/proc/n0gjtkngh991mgn1bmllxhm76bl2.htm

Though it requires admin... so...

 

Bart

_______________
Polish SAS Users Group: www.polsug.com and communities.sas.com/polsug

"SAS Packages: the way to share" at SGF2020 Proceedings (the latest version), GitHub Repository, and YouTube Video.
Hands-on-Workshop: "Share your code with SAS Packages"
"My First SAS Package: A How-To" at SGF2021 Proceedings

SAS Ballot Ideas: one: SPF in SAS, two, and three
SAS Documentation



michal_1407
Fluorite | Level 6

Maybe any hints How to change the default font? 

 

I tried with this option:

 

goptions ftext="Comic Sans MS";

 

But the same.

ballardw
Super User

One way would be to use a different ODS style. Like don't override the default that ODS PDF uses.

 

Goptions is for graphics options and mostly for the older device based graphics and would, if having any affect, likely only effect the output of procedures such as Gplot, Gchart, G3d, Gmap and/or Greplay.

 

 

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

From SAS Users blog
Want more? Visit our blog for more articles like these.
5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 262 views
  • 0 likes
  • 3 in conversation