/***************************************************************************************************************** SAS file name: ODS_Select.sas File location: _________________________________________________________________________________________________________________ Purpose: To demonstrate the use of ODS TRACE and ODS SELECT/EXCLUDE to control SAS Output Author: Peter Clemmensen Creation Date: 15/07/2017 This program supports the blog post "Control your Output with ODS select/exclude" on SASnrd.com *****************************************************************************************************************/ /* Use ODS trace on/off to examine what output Univariate Procedure produces by deafult */ ods trace on; proc univariate data = sashelp.cars; histogram mpg_city / normal; qqplot mpg_city / normal; var mpg_city; run; ods trace off; /* Use ODS select to select the desired output we want */ ods select Moments BasicMeasures; proc univariate data = sashelp.cars; histogram mpg_city / normal; qqplot mpg_city / normal; var mpg_city; run; /* Use ODS select to select the desired output we DO NOT want */ ods exclude Moments BasicMeasures; proc univariate data = sashelp.cars; histogram mpg_city / normal; qqplot mpg_city / normal; var mpg_city; run;