Help using Base SAS procedures

Proc Summary Output for each var on the var statement

Accepted Solution Solved
Reply
Contributor
Posts: 62
Accepted Solution

Proc Summary Output for each var on the var statement

Hi friends in SAS,

I want to get output for each var on the var statement for proc summary. for example:

proc summary data = sashelp.class;

  var age height;

  output out =want min=MIN max=MAX;

run;

will give me the min and max for age but not height. how can i get them both in one dataset?

as always, thank you!


Accepted Solutions
Solution
‎11-05-2013 05:09 PM
Super User
Posts: 11,343

Re: Proc Summary Output for each var on the var statement

The easiest is to use

....   min= max= /autoname;

View solution in original post


All Replies
Solution
‎11-05-2013 05:09 PM
Super User
Posts: 11,343

Re: Proc Summary Output for each var on the var statement

The easiest is to use

....   min= max= /autoname;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 132 views
  • 0 likes
  • 2 in conversation