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.