data three;
infile'E:\sas\HW 4\scores.txt';
input name$ g1-g8 p1-p8;
array a{8}g1-g8;
array b{8}p1-p8;
array c{8}c1-c8;
last=0;
do i=1 to 8;
c{i}=a{i}*b{i}*.01;
last=last+c{i};
last=round(last,.1);
end;
keep name last;
proc print noobs;
label last='final grade';
title'the final grade of students';
run;
我想问下我的标签最后打印为什么不是final grade而依旧是last。谢谢大家。