Using ODS with JAVAMETA


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.

  1. Specify the JAVAMETA device driver.

     goptions reset=all device=javameta; 
  2. Close the ODS listing destination (the Output and Graph windows ) to conserve resources.

     ods listing close; 
  3. 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.

  4. 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; 
  5. 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.




SAS.GRAPH 9.1 Reference, Volumes I and II
SAS.GRAPH 9.1 Reference, Volumes I and II
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 342

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net