data salary;
input department$ gender$ salary;
cards;
a f 3
a f 4
b f 4
a m 4
c f 5
b m 6
b f 8
c m 9
c m 7
c m 6
b f 7
b m 9
a m 9
;
run;
proc print;
run;
data work.total;
set work.salary;
by department gender;
run;
proc print;
run;
谁能帮忙改下? 好像是by step问题, total里没有obs