![]() 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). Default List for Each ODS Destination shows the default lists:
| ODS Destination | Default List |
|---|---|
| Listing | SELECT ALL |
| HTML | SELECT ALL |
| Output | EXCLUDE 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 (see Directing an Output Object to a Destination). For each destination, ODS first asks if 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.
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 each step boundary, 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 a step boundary. You must explicitly modify such a list (see Explicit Modification of Lists for the Overall, HTML, and Listing Destinations).
Automatically Modifying the Overall List at a Step Boundary illustrates how ODS modifies several different lists for the overall destination at a step boundary.
Note:
You cannot remove
items from the list this way. ![[cautend]](../common/images/cautend.gif)
Explicitly Modifying the List for the HTML Destination 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.
When you are using ODS, it is wise to specify a QUIT statement at the end of every procedure that supports run-group processing. If you end every such procedure step explicitly, rather than waiting for the next PROC or DATA step to end it for you, the QUIT statement resets the selection list. What Happens When You Leave Off the QUIT Statement? and Using a Selection List with Multiple Procedure Steps illustrate the difference that a QUIT statement makes.
What Happens When You Leave Off the QUIT Statement?
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.