Adding Non-Graphics Output to a Web Page


Adding Non-Graphics Output to a Web Page

When you open a body file in ODS, all graphics and non-graphics output is referenced in that body file until the HTML destination is closed or another body file is opened. Thus, you do not have to do anything special to combine graphics and non-graphics output. Simply open a body file and run the procedures whose output you want to combine:

 filename odsout '  path-to-Web-server  ';  goptions device=java;  /* close the listing destination */  ods listing close;  /* open html destination and a body file */  ods html     body='sales.html'     style=money     path=odsout;  /* generate graphics and */  /* non-graphics output */  /* using the current data set and style */  proc gchart;       vbar3d state / sumvar=sales;  run;  quit;  proc print noobs;  run;  /* close the html destination,  */  ods html close;  /* open the listing destination */  ods listing; 

In this example, the GCHART procedure output is referenced in the body file, and then the PRINT procedure output is written below it. The two outputs appear together on the same Web page when file sales.html is viewed in a browser.

For a more complete example, see Example 9. Combining Graphs and Reports in a Web Page on page 248.




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