Hi Community,
I tried to run the glopt in sas
title1 ls=1.5 "FattyLiver Analysis";
symbol1 interpol=box bwidth=2 color=red;
/*axis1 order=(50 to 75 by 5) minor=none offset=(0,0);
--axis2 offset=(30,30);*/
proc gplot data=reg2;
plot fvGrade*WHtR /
vaxis=axis1 haxis=axis2 noframe;
run;
Output
ERROR: The PNG driver can not find any fonts. No output will be created.
ERROR: The PNG driver can not find any fonts. No output will be created.
ERROR: Physical file does not exist, C:\WINDOWS\Fonts\sasmono.ttf..
WARNING: No output destinations active.
Could anyone please explain what the error mean about the issue in the code / drivers
Thanks in advance!
This one:
WARNING: No output destinations active.
Means you have no ods destinations open, maybe you issued an ods _all_ close; or something similar to close them all.
The PNG driver, means the system is trying to draw your graph to png format, but can't find the specific code to do this. Maybe your system does not have this and you need to use another file format such as svg or bitmap.
The missing SAS font, use another one, i.e. set template to something else.
More importantly however, gplot is ancient and outdated, do not use it! For many years now sgplot and graph template language have been the technology to produce graphs, gplot is only included as legacy. Use sgplot in future. If you need examples this blog has pretty much every graph you can imagine with code examples:
This one:
WARNING: No output destinations active.
Means you have no ods destinations open, maybe you issued an ods _all_ close; or something similar to close them all.
The PNG driver, means the system is trying to draw your graph to png format, but can't find the specific code to do this. Maybe your system does not have this and you need to use another file format such as svg or bitmap.
The missing SAS font, use another one, i.e. set template to something else.
More importantly however, gplot is ancient and outdated, do not use it! For many years now sgplot and graph template language have been the technology to produce graphs, gplot is only included as legacy. Use sgplot in future. If you need examples this blog has pretty much every graph you can imagine with code examples:
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.