kingsoft3344 发表于 2010-1-28 09:12 
SAS 从一张数据表中提取数据生成新的表比如:从综合质量成本年主题表sucqcp0031中取各年度分公司质量成本,使用proc tabulate显示报表,使用PROC GCHART显示历年质量成本合计柱状图 基本程序怎么样的
Here is a sample program as 基本程序.
You may work on it by adding axises, frames, titles to make it pretty.
HTH
data t1;
length costtype $8;
do month = 1 to 12;
do company='A','B';
do costtype='salary','material','ship';
cost=ceil(ranuni(12345)*20);
output;
end;
end;
end;
run;
proc sort data=t1;
by company;
run;
proc print; run;
proc gchart data=t1;
by company;
format cost dollar8.;
vbar3d month / sumvar=cost
subgroup=costtype
inside=subpct
width=9
outside=sum
;
run;
quit;