Selecting with WHERE Conditions

Starting in SAS 9.2, you have a more advanced ability to select (and exclude) output objects. The examples shown so far have been simple. What if, for some reason, you wanted all the output objects related to the INCOME variable from a job to go to the RTF destination and all the output objects related to the AGE variable to go to the HTML destination?

It would be tedious to run your procedures and then hard code ODS SELECT (or EXCLUDE) statements for all the output objects of interest. However, an ODS TRACE statement reveals that variable names appear in either the path or the label path information from the ODS TRACE.

Armed with the knowledge that the SELECT and EXCLUDE statements support WHERE processing, we ...

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.