Hi ,
Please see below,
Proc sort data=sashelp.class out=cl1;
by age;
run;
data class;
set cl1;
by age;
if first.age then cnt+1;
run;
Proc report data=class nowd;
column cnt age sex, height;
define cnt / group;
define age / group;
define sex / across;
define height/analysis mean;
run;
When the above code is run I get the column names as
sex
F M
Cnt Age Height Height
I want the columns to be displayed as Cnt, Age, F, M . Please let me know how to remove sex and Height from the layout.
Thanks.