When I run PROC MEANS and send the output to PDF, the default is a column for variable label that is narrow and often wraps to two lines to fit the whole thing. That would be OK, but none of the other columns skip a line to keep up with the label. So after any label wraps, the associated statistics (the ones you'd normally read left to right across a row) are actually from other variables--nothing lines up. How can I get the other columns to automatically stay aligned with the intended variable?
Like this:
var1 this is a long label that continues 123.5
var2 on the next line 238.4
var3 this is actually var2's label 437.2
var4 this is actually var3's label 123.9
Or send the output to a data set and use Proc Print where you have more display controls than Proc Means.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.