![]() Chapter Contents |
![]() Previous |
![]() Next |
| The Complete Guide to the SAS Output Delivery System |
To see the contents of the lists use the ODS SHOW statement, which writes the lists to the SAS log (see ODS SHOW Statement). The following table shows the default lists.
| ODS Destination | Default List |
|---|---|
| HTML | SELECT ALL |
| Listing | SELECT ALL |
| Output | EXCLUDE ALL |
| Printer | SELECT ALL |
| Overall | SELECT ALL |
| How to Specify an Output Object |
In order to work with selection and exclusion lists, you must know how to specify an output object.
To specify an output object, you need to know what output objects your SAS program produces. The ODS TRACE statement writes to the SAS log a trace record that includes the path, the label, and other information about each output object that is produced. (See ODS TRACE Statement.) You can specify an output object as
Univariate.City_Pop_90.TestsForLocationpartial paths are
City_Pop_90.TestsForLocation
TestsForLocation
"The UNIVARIATE Procedure"."CityPop_90"."Tests For Location"partial label paths are
"CityPop_90"."Tests For Location"
"Tests For Location"
| 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 to send it
to. The following figure illustrates this process:
Directing an Output Object to a 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 that you route output to. ![[cautend]](../common/images/cautend.gif)
| Modifying Selection and Exclusion Lists |
There are two ways to modify a selection or exclusion list:
This section explains automatic and explicit modifications
of the lists for each destination.
At the end of each DATA step that uses ODS and at the end of each procedure step, ODS removes from the list all output objects that were not specified with the PERSIST option (see ODS EXCLUDE Statement and ODS SELECT Statement). If ODS removes all objects from the list, it sets the list to its default of SELECT ALL. If any items in the list are specified with PERSIST, they remain in the list, and the resulting list is used.
If the list contains the argument ALL or NONE, it is not modified at the end of a procedure or DATA step. You must explicitly modify such a list (see Explicit Modification of Lists All Destinations except the Output Destination).
Note:
You cannot remove
items from the list this way. ![[cautend]](../common/images/cautend.gif)
The following table illustrates these ways of modifying the HTML list:
You modify the list for the Output destination with the ODS OUTPUT statement (see ODS OUTPUT Statement). Use ODS OUTPUT with one or more data-set-specifications to add objects to the list or to modify the associations between output objects and data sets.
The following statements always reset the list for the Output destination to EXCLUDE ALL.
What Happens When You Leave Off the QUIT Statement?
For an example of a SAS program that illustrates how the lists are written and cleared, seeUsing a Selection List with Multiple Procedure Steps.
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.