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
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
Maybe any hints How to change the default font?
I tried with this option:
goptions ftext="Comic Sans MS";
But the same.
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.
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.
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.