程序如下:
data score;
input id job $ score @@;
cards;
01 chi 80 01 math 75 01 eng 95 02 chi 70 02 math 85 02 eng 92
03 chi 85 03 math 80 03 eng 94 04 chi 93 04 math 96 04 eng 88
05 chi 80 05 math 99 05 eng 86
;
proc sort;
by job id score;
proc print;
run;
data _NULL_;
set score end=final;
title 'courses' marks analysis';
title '---------------------------';
subsco=subsco*score;
totsco=totsco*score;
subid+1;
totid+1;
put id job 5-8 score;
subsco=0; subid=0;
if final then put '全组总分为:' @20 'id=' totid @26 '成绩=' totsco;
proc chart;
vbar job/sumbar=score;
求问为什么结果没有chart???