Combining the Results of Several Procedures

The previous two examples showed how to send output from a single procedure to an HTML file. However, ODS also enables you to send a number of results from a series of procedures to the same HTML file. This allows you to build a combined report from a number of procedures and data sets and place it all on a single Web page. In this example, the output from three procedures is combined into a single HTML file. Two PROC MEANS steps and a PROC PRINT step are all placed between two ODS HTML statements.

title 'Quarterly Report'; ODS HTML BODY='QReport.html'; title2 'Revenue by Customer'; proc means data=Billings nonobs mean sum; class CustomerName; var BillableAmt; run; title2 'Revenue by Division'; proc ...

Get Output Delivery System: The Basics and Beyond now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.