Skip to main content
ARS Home » Research » Publications at this Location » Publication #215362

Title: Differences in ODS formatting for HTML with Proc Print and Proc Report

item Thornton, Laura

Submitted to: Proceedings of SAS Users Group
Publication Type: Proceedings
Publication Acceptance Date: 11/14/2007
Publication Date: 11/14/2007
Citation: Thornton, L.L. 2007. Differences in ODS formatting for HTML with Proc Print and Proc Report. Proceedings of SAS Users Group. Nov. 11-14, Baltimore, MD, 5 pp. .

Interpretive Summary: When reporting results from SAS output to various audiences, often a more sophisticated report is required than the basic proc print output. While proc print can be forced to produce desired output, proc report is a better reporting tool, allowing greater flexibility in handling outputs. However, when using ODS to publish outputs, whether to HTML or another file, differences in the handling of certain coding statements occurs.

Technical Abstract: While proc print is a terrific tool for data checking and data summary, proc report is similar to, but more powerful because it can do some basic calculations or statistics and data can be broken more effectively into manageable fields. The ODS procedure can produce HTML files from either procedure and formatting for output is slightly different for each. This presentation is meant to explore a few of the differences in the formatting applied by ODS to each procedure and methods to produce similar HTML output. It is not all inclusive, but this brief demonstration will deal specifically with id, class, and by statements within each for output to HTML by ODS.