Here is a minimal working example and output: proc format;
value behand_az16_l8z
5= 'inter- ven- tionell:andere'
6= 'inter- ven- tionell:andere lokale'
7= 'inter- ven- tionell:ausschl.system.'
;
run;
data bla;
format behandlungsart behand_az16_l8z.;
do i=5 to 7;
behandlungsart=i;
name=1;
output;
end;
drop i;
run;
proc tabulate data=bla Format=8.;
class behandlungsart;
table behandlungsart=' '*N=' ';
run;
proc freq data = bla order = internal;
table
name * Behandlungsart / nopercent nocol norow ;
run; Here the output: The SAS System 15:06 Monday, March 21, 2016 1 ---------------------------- | | |inter- | | |inter- |ven- | |inter- |ven- |tionell-| |ven- |tionell-|:aussch-| |tionell-|:andere |l.syste-| |:andere | lokale | m. | |--------+--------+--------| | 1| 1| 1| ---------------------------- The SAS System 15:06 Monday, March 21, 2016 2 The FREQ Procedure Table of name by behandlungsart name behandlungsart Frequency|inter- |inter- |inter- | Total |ven- |ven- |ven- | |tionell:|tionell:|tionell:| |andere |andere |ausschl.| | |lokale |system. | ---------+--------+--------+--------+ 1 | 1 | 1 | 1 | 3 ---------+--------+--------+--------+ Total 1 1 1 3
... View more