turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- SAS Programming
- /
- SAS Procedures
- /
- How to suppress the output for PROC UNIVARIATE

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

2 weeks ago

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;

VAR AGE;

RUN;

PROC UNIVARIATE DATA=RESULTS_ALL;

VAR AGE;

RUN;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

2 weeks ago - last edited 2 weeks ago

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?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

2 weeks ago

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

2 weeks ago

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.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a week ago

Thanks! I'll see if it works.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a week ago

```
proc univariate data=sashelp.class noprint;
var age;
run;
```

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a week ago

Thanks! I'll try it.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a week ago

PaigeMiller suggested, "Look up tutorials on SAS ODS SELECT for more details." One reference that addresses this subject is

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a week ago

Thanks! I'll take a look at it.