08-08-2017 04:27 PM
I am required to run PROC MEANS and PROC UNIVARIATE but PROC UNIVARIATE already has some of the things that PROC MEANS does so how do I get rid of those for PROC UNIVARIATE? Thanks!
My code is right now is:
PROC MEANS DATA=RESULTS_ALL;
PROC UNIVARIATE DATA=RESULTS_ALL;
08-08-2017 04:34 PM - edited 08-08-2017 04:36 PM
Are you asking how to suppress ALL of the output from PROC UNIVARIATE?
Or are you asking how to suppress SOME of the output from PROC UNIVARIATE?
it's not even clear to me why you need both PROC MEANS and PROC UNIVARIATE in sequence. Wouldn't just PROC UNIVARIATE give you everything you need in this case?
08-08-2017 05:06 PM
Just some of PROC UNIVARIATE. And it's for an assignment so I'm required to use both PROC MEANS and PROC UNIVARIATE. If I wasn't then I would just use PROC UNIVARIATE.
08-08-2017 06:03 PM
You can use ODS SELECT to select the parts of PROC UNIVARIATE you want to keep.
So, first use
ODS TRACE ON;
then run PROC UNIVARIATE and all the parts of PROC UNIVARIATE will be specified in the SASLOG. Then run UNVIARIATE again with
ODS SELECT <part1> <part2> ... ;
where <part1> etc are the actual names of the parts of PROC UNIVARIATE as shown in the SASLOG.
Look up tutorials on SAS ODS SELECT for more details.
08-09-2017 10:28 AM
PaigeMiller suggested, "Look up tutorials on SAS ODS SELECT for more details." One reference that addresses this subject is