Using Proc Report to Cross-Tabulate Multiple Response Items

Citation

Thornton, P. Using ODS PDF, Style Templates, Inline Styles, and PROC REPORT with SAS® Macro Programs.

Abstract

A production system of SAS macro programs is described that modularize the generation of syntax to produce client quality reports of descriptive and inferential results in a PDF document. The reusable system of macros include programs that save all current titles, footnotes, and option settings, establish standard titles, footnotes and option settings, and initially create the PDF document. Macro programs may be called to generate PROC REPORT syntax to produce various tables of descriptive and inferential results with table numbers, footnotes and customized bookmarks. A modified style template is use to determine the look of the whole document, and a macro program of inline style definitions is used to define the defaults for each type of table. A version of the inline style macro program may be customized to accommodate the needs of each project, and inline style parameters may also be modified for any given macro call. A macro program to end the PDF creates a standard data documentation page, and restores all original titles, footnotes and option settings. This paper is designed for the intermediate to advanced SAS programmer using Foundation SAS Software on a Windows operating system.


Read more from SRI

  • surgeons around a surgical robot

    The SRI research behind today’s surgical robotics

    Intuitive’s da Vinci 5 system represents a major leap in robotic-assisted medicine. It all started at SRI, which continues to advance teleoperation technologies.

  • a collage of digital graphs

    A banner year for quantum

    SRI-managed QED-C’s annual report on quantum trends captures an industry accelerating rapidly from technical promise toward major global impact.

  • ICE Cube containing SRI’s aerogel experiment, photographed prior to launch. Source: Aerospace Applications North America

    An SRI carbon capture experiment launches into space

    By synthesizing carbon-absorbing aerogels in microgravity, SRI research will give us a rare glimpse into how these materials could be radically improved.