Chapter Contents

Previous

Next
The ODS Statements

ODS SELECT Statement


Specifies output objects to send to ODS destinations.

Default: Not using the ODS SELECT statement is the same as specifying

ODS SELECT ALL;
Tip: 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.
See also: ODS EXCLUDE Statement
Featured in: Selecting Output for the HTML Destination and Using a Selection List with Multiple Procedure Steps


ODS SELECT <ODS-destination>selection(s) | ALL | NONE;


Required Arguments

selection(s)
identifies output objects to add to a selection list. ODS sends the items in the selection list to all active ODS destinations. By default, ODS automatically modifies selection lists at a step boundary. For information on modifying these lists, see Modifying Selection and Exclusion Lists. For information on step boundaries, see the chapter on DATA Step Processing in SAS Language Reference: Concepts.

Each selection has the following form:
output-object <(PERSIST)>
where

output-object
specifies one or more output objects to select.

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

PERSIST
keeps the output-object that precedes it in the selection list, regardless of step boundaries, until you explicitly modify the list with

Featured in: Using a Selection List with Multiple Procedure Steps

ALL
sets the list to SELECT ALL.
Interaction: If you specify ALL without specifying a destination, ODS sets the overall list to SELECT ALL and sets all other lists to their defaults.
Featured in: Using a Selection List with Multiple Procedure Steps

NONE
sets the list to SELECT NONE.
Interaction: If you specify NONE without specifying a destination, ODS sets the overall list to SELECT NONE and sets all other lists to their defaults.
Tip: Using NONE is different from closing a destination. The Output destination is still running, but ODS is restricting the output that it sends to the destination.


Options

ODS-destination
specifies which ODS destination's selection list to write to, where ODS-destination can be HTML or LISTING. (See ODS Destinations.)
Default: If you omit ODS-destination, ODS writes to the overall selection list.


Chapter Contents

Previous

Next

Top of Page

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.