This is a newbie SAS question. I have a dataset with numerical variables v1-v120, V and a categorical variable Z(with say three possible v
v1-v120
V
Z
It's easy to do this with proc means. Using the t1 data set from Louisa Grey's answer:
proc means
t1
proc means data=t1 nway noprint; class z; var v1-v3; output out=t3 mean=w1-w3; run;
This creates an table of results that match the SQL results.