By default, only the HTML destination is open in all modes except batch mode.
Consequently, if you do nothing, your SAS programs run and produce HTML output. In
batch mode, the LISTING destination is the default.
How ODS Determines the Destinations for an
Output Object
As each output object is produced, ODS uses the selection and exclusion lists to
determine which destination or destinations the output object is sent to. The following
figure illustrates this process.
For each destination, ODS first asks whether the list for that destination includes the
object. If it does not, ODS does not send the output object to that destination. If the list
for that destination does include the object, ODS reads the overall list. If the overall list
includes the object, ODS sends it to the destination. If the overall list does not include
the object, ODS does not send it to the destination.
Figure 2.2 Directing an Output Object to a Destination
Does the destination list include the output object
to the destination?
Does the overall list
include the object?
ODS passes the object
to the destination
yes
yes
no
no
ODS doesn’t pass the
object to the destination
Note: Although you can maintain a selection list for one destination and an exclusion
list for another, it is easier to understand the results if you maintain the same types of
lists for all the destinations where you route output.
38 Chapter 2 Output Delivery System: Basic Concepts

Get SAS 9.4 Output Delivery System, 3rd Edition 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.