I am trying to create a table like this:

Here's my code which is not working:
proc tabulate data=temp out = t1;
class age gender ethnic height TRT TREATGR;
table ethnic * (N) gender * (N) age * (n mean median min max) height * (n mean median min max),
TREATGR*TRT*N;
run;
Here's the log:
127 proc tabulate data=temp out = t1; 128 class age gender ethnic height TRT TREATGR; 129 table ethnic * (N) gender * (N) age * (n mean median min max) height * (n mean median min 129! max), 130 TREATGRTRTN; 131 run;
ERROR: There are multiple statistics associated with a single table cell in the following nesting : ETHNIC * N * TREATGR * TRT * N. ERROR: There are multiple statistics associated with a single table cell in the following nesting : GENDER * N * TREATGR * TRT * N. ERROR: There are multiple statistics associated with a single table cell in the following nesting : AGE * N * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : AGE * Mean * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : AGE * Median * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : AGE * Min * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : AGE * Max * TREATGR * TRT * N. ERROR: There are multiple statistics associated with a single table cell in the following nesting : HEIGHT * N * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : HEIGHT * Mean * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : HEIGHT * Median * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : HEIGHT * Min * TREATGR * TRT * N. ERROR: Statistic other than N was requested without analysis variable in the following nesting : HEIGHT * Max * TREATGR * TRT * N. NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set WORK.T1 may be incomplete. When this step was stopped there were 0 observations and 0 variables. WARNING: Data set WORK.T1 was not replaced because this step was stopped. NOTE: PROCEDURE TABULATE used (Total process time): real time 0.01 seconds cpu time 0.01 seconds
But this works
proc tabulate data=temp out = t1;
class age gender ethnic height TRT TREATGR;
table ethnic gender age height ,
TREATGR*TRT*N;
run;
But it lits all the age and heights.