SAS.GRAPH 9.1 Reference, Volumes I and II
The following steps use ODS to develop a Web presentation for the Metaview Applet. The presentation displays a single graph. The metacodes for that graph are embedded in the body of the HTML output file.
-
Specify the JAVAMETA device driver.
goptions reset=all device=javameta;
-
Close the ODS listing destination (the Output and Graph windows ) to conserve resources.
ods listing close;
-
Open an HTML output file by using an ODS statement and specifying a filename.
ods html file="C:\metaVbar.htm";
If you need to specify a Java archive location other than the location that is specified as the value of the APPLETLOC= system option, you can use the CODEBASE = option.
ods html file="C:\metaVbar.htm" codebase="http://ourweb/sasJava";
You can enhance your Web presentation by specifying other applet parameters, as described in Metaview Applet Parameters on page 475.
-
Generate the metacodes and embed those metacodes in the body of the HTML output file.
proc gchart data=sashelp.class; vbar height / group=age; run; quit;
-
Close the HTML file and reopen the listing destination.
ods html close; ods listing;
Run the program to generate the HTML output file. The applet may run in the SAS Results window, or you can display the HTML output file in a Web browser.