Chapter 4. Customized Reports

The reports shown in Chapters 2 and 3 used the features and options of PROC PRINT, PROC REPORT, and PROC TABULATE. Although you can add formatting features to the reports produced by these procedures, they still have a standard presentation.

This chapter presents three examples of customizing reports in styles either not available with these procedures or, in the case of PROC REPORT, available only through the use of programming statements.

The first example in this chapter uses programming statements in PROC REPORT to produce a multipage listing that does not have the usual look of a detail or summary report produced by PROC REPORT.
The second example shows how to use a DATA step to create a report. With SAS language programming statements, you can control placement of information on a page. This example combines the output data sets from several procedures to produce a one-page report using programming statements in a DATA step.
The last example shows how you can save ODS output objects in data sets, select specific information from these data sets, and present the selected results in a report.

The three examples in this chapter send output to the default LISTING destination. The main program in Example 4.1 is written specifically to send output to the LISTING destination. The related technique for this example presents a more generic version of the program. This second program can send output to a nonlisting destination and does not rely on any ODS features.

Example 4.2 is modified in Example 6.12 to include ODS features and send output to a nonlisting destination. See Example 5.2 for another example of a DATA step program that produces a report.

See the back of this book for a list of titles related to the features of these examples, and visit the SAS Press Web site (http://support.sas.com/saspress) for current information on new and revised publications.

Several presentations at SUGI conferences show how SAS users apply report writing techniques. Recent conference proceedings that are available online provide a wealth of additional applications and examples. You can link to them through the SAS support Web site (http://support.sas.com).

Table 4.0 presents a cross-reference of the examples in this chapter to the procedures used, data sets used, and ODS enhanced versions of the examples. See Appendix A for details on the example data sets analyzed in this chapter. See Appendix B for a table that cross-references all examples in this book.

Table 4.0. Cross-Reference of Examples in Chapter 4
ExampleReport-Writing Tool UsedODS Enhanced VersionData SetExample Title
REPORTTABULATEPRINTDATA StepMEANSFREQ
4.1X      SERVICECustomizing a Detail Report with Individualized Page Headers
4.2   X  6.12DEMOGCreating a Customized Table of Descriptive Statistics
4.3X     4.3 (output objects)FITNESSCustomizing the Presentation of Analyses

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.84.171