I am working on some html graphics outputs, the simple program I copy from SAS is like that:
proc sort data= sashelp.prdsale out=prdsummary;
by year quarter;
run;
goptions reset=all device=javameta
ftext="Trebuchet" htext=1.5 hby=2;
ods listing close;
ods html;
proc gchart data=prdsummary;
by year quarter;
hbar country / sumvar=actual subgroup=product sum;
run;
quit;
ods html close;
I wa able to get the output, a htm file. But when I clicked on that htm file and tried to open it in my IE, the error message show up:
"Sorry, your browser does not support the applet tag. cannot be displayed. Sorry, there was a problem with the Graph control or plug-in in your browser. cannot be displayed."
What's the reason for this error? What should I do with my IE?
Many Thanks!!
Have you tried a different browser?
I tried Microsoft Edge and Chrome. They are all the same.
This is just an example. Actually in my own program, JAVAMETA is for the interactive features in my html output, for example, I want to use tips, and can enlarge the graph, etc. My program worked very well under SAS 9.3 and IE 8. Currently I have SAS 9.4 and Windows 10, and the progam is not working. I am not sure what's the issue.
Can you post a sample of the output? My guess is a Windows10 issue with security.
My output is quite simple: I have a .txt which is output from SAS by using JAVAMETA. and then a html file like this:
<html>
<head>
<title>********</title>
</head>
<body>
<applet code="com.sas.graphics.applets.metaview.MetaViewApplet.class"
archive="file:///C:/Program Files/SASHome/SASGraphJavaApplets/9.4/sas.graph.metaviewapplet.jar"
width="1200"
height="600"
align="TOP">
<param name="BackgroundColor" value="#EEEEEE">
<param name="ZoomControlEnabled" value="false">
<param name="SlideShowControlEnabled" value="false">
<param name="Metacodes" value="j001-001.txt">
<param name="MetacodesLabel" value="001-001">
</applet>
</body>
</html>
Viewing SAS device=javameta output can be problematic. You have to point the codebase just right in a location everyone can get to, and everyone's browser has to have the correct version of java, etc, etc. Therefore I would recommend not using it.
If you just need a graph, I would suggest using device=png. If you need a graph with html hover-text/drilldown/etc, but need it to be in a single file (such that it is easy to move around, or email, etc) I would suggest using the new "ods html5" with bitmap_mode='inline'. Here are a couple of blogs I wrote with example code:
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 16. 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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: