Hi SAS Users,
Today when I run the proc univariate and using Output delivery system to get the Quantiles dataset, I receive both the results from Proc Univariate and the output of Quantiles.
In particular, my code is as below
ods output Quantiles=outlier;
proc univariate data=sashelp.shoes;
var sales Inventory;
run;
By running this code, I have one result and one output
I am wondering what I should do to not show the result but show only the output data?
I have tried no print option and ods exclude all; but they all not work the way I want.
Many thanks and warm regards.
ODS SELECT NONE;
<insert your sas code>;
ODS SELECT ALL;
Use either ODS SELECT or EXCLUDE to conditionally display output.
ALL/NONE are keywords as well, to select all tables or none.
@Phil_NZ wrote:
Hi SAS Users,
Today when I run the proc univariate and using Output delivery system to get the Quantiles dataset, I receive both the results from Proc Univariate and the output of Quantiles.
In particular, my code is as below
ods output Quantiles=outlier; proc univariate data=sashelp.shoes; var sales Inventory; run;
By running this code, I have one result and one output
I am wondering what I should do to not show the result but show only the output data?
I have tried no print option and ods exclude all; but they all not work the way I want.
Many thanks and warm regards.
I think you need to use an ODS SELECT statement, something like: ODS select quantiles;
Hi @SASKiwi
Thank you for your suggestion, but when running this code, I only get results but not output, while what I need is output but not result.
ods select Quantiles;
proc univariate data=sashelp.shoes;
var sales Inventory;
run;
Many thanks.
ODS SELECT NONE;
<insert your sas code>;
ODS SELECT ALL;
Use either ODS SELECT or EXCLUDE to conditionally display output.
ALL/NONE are keywords as well, to select all tables or none.
@Phil_NZ wrote:
Hi SAS Users,
Today when I run the proc univariate and using Output delivery system to get the Quantiles dataset, I receive both the results from Proc Univariate and the output of Quantiles.
In particular, my code is as below
ods output Quantiles=outlier; proc univariate data=sashelp.shoes; var sales Inventory; run;
By running this code, I have one result and one output
I am wondering what I should do to not show the result but show only the output data?
I have tried no print option and ods exclude all; but they all not work the way I want.
Many thanks and warm regards.
Hi @Reeza
Thank you very much, I found the code to deal with my need from your suggestion
ods select None;
proc univariate data=sashelp.shoes ;
var sales Inventory;
ods output Quantiles=outlier;
run;
ods select all;
Many thanks and warm regards.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.