Identifying the Current Selections and Exclusions

The examples shown so far have been simple. You could easily see what was being selected and excluded. However, as you start to create complex production jobs with thousands of lines of code, you might start running into problems. The following example shows how to debug a problem with your ODS output.

This code should create an RTF file with two chi-square results tables. The EXCLUDE statement blocks the display of the crosstabulations. However, if you view Figure 8.12, you can see that the resulting RTF file is empty.

ODS RTF FILE='selectshow.rtf'; ODS RTF EXCLUDE CrossTabFreqs(Persist); proc freq data=voters; tables party*gender / chisq; run; proc freq data=voters; tables party*voted / chisq; ...

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.