The SAS Output Delivery System and reporting techniques

ODS EXCEL formatting proc means output

Reply
Occasional Contributor
Posts: 6

ODS EXCEL formatting proc means output

When I run a proc means in ODS Excel, I get the output, but it's all in one Excel row.  So if the data set has 50 variables, for example, I'll get 50 rows (each with var name, mean, min, max, etc....), but they're all in one Excel row.  Is there a way to insert each one into a separate Excel row?  

Thanks!

-Dave 

Super User
Super User
Posts: 9,855

Re: ODS EXCEL formatting proc means output

Always post your code.  You can get them one on each row by putting the stats request on the proc line, e.g:

proc means data=<ds> n mean;
  var <variable>;
  output out=want;
run;

so you see I put n and mean on the proc means line.

Super User
Posts: 13,941

Re: ODS EXCEL formatting proc means output

Show your proc means code.

You might want the option on the Proc statement STACKODSOUTPUT.

Occasional Contributor
Posts: 6

Re: ODS EXCEL formatting proc means output

Yes, STACKODSOUTPUT was all I needed--thanks so much!    -Dave 

Ask a Question
Discussion stats
  • 3 replies
  • 97 views
  • 0 likes
  • 3 in conversation