Chapter Contents |
Previous |
Next |
The Complete Guide to the SAS Output Delivery System |
Some procedures, such as PROC UNIVARIATE, produce multiple output objects. Any procedure that uses ODS produces multiple output objects when you use BY-group processing. ODS enables you to select which of these output objects go to the open ODS destinations. ODS destinations include the Listing destination, the HTML destination, the Printer destination, and the Output destination. For more information on ODS destinations, see ODS Destinations.
You choose the objects to send to destinations with the ODS SELECT or the ODS EXCLUDE statement. To select individual output objects, use this form of the ODS SELECT statement:
ODS SELECT selection(s); |
For example, to select just the output objects that contain the basic measures and the quantiles from the PROC UNIVARIATE output, use the following program.
Note: This example uses file names that may not be valid
in all operating environments. To successfully run the example in your operating
environment, you may need to change the file specifications. See Alternative ODS HTML Statements for Running Examples in Different Operating Environments.
/* Create HTML files. */ ods html body='select-body.htm' contents='select-contents.htm' page='select-pages.htm' frame='select-frame.htm';
/* Select output objects by name. */ ods select BasicMeasures Quantiles; /* Analyze the data. */ proc univariate data=statepop mu0=3.5; var citypop_90 noncitypop_90; title; run; /* Close the HTML destination. */ ods html close;
The frame file appears in Frame File for Selected Output Objects. The program also creates Listing output, which is not shown. The Listing output contains the same information as the HTML body file, but it is formatted with the traditional SAS monospace font.
Frame File for Selected Output Objects
For more information on selecting output objects, see ODS SELECT Statement.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.