Chapter Contents

Previous

Next
The ODS Statements

Example 2: Selecting Output for the HTML and Printer Destinations


ODS features:
ODS HTML statement:
BODY=
CLOSE
ODS PRINTER statement:
FILE=
CLOSE
ODS LISTING statement:
CLOSE
ODS SELECT statement:
with path
with label
PERSIST
Other SAS features: PROC UNIVARIATE
Data set: STATEPOP

This example selects three output objects to send to both the HTML destination and the Printer destination.

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.  [cautionend]


Program
 Note about code
ods listing close;
 Note about code
options nodate nonumber;
 Note about code
ods html body='odsselect-body.htm';
 Note about code
 ods printer file='odsselect.ps';
 Note about code
ods select BasicMeasures
           "Tests For Location"
           Univariate.CityPop_90.ExtremeObs;
 Note about code
proc univariate data=statepop mu0=3.5;
   var citypop_90 citypop_80;
run;
 Note about code
ods html close;

ods printer close;
 Note about code
ods listing;


HTML Output
The HTML output includes three output objects for the variable CityPop_90 and two output objects for the variable CityPop_80 . Use the scrollbar to see all the objects. [HTML Output]


Printer Output
 Note about figure

[IMAGE]

[IMAGE]


Chapter Contents

Previous

Next

Top of Page

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