如题,运行以下程序
data score03;
input score@@;
if score<30 then do;name='00-30';group=1;end;
else if score<40 then do;name='30-39';group=2;end;
else if score<50 then do;name='40-49';group=3;end;
else if score<60 then do;name='50-59';group=4;end;
else if score<70 then do;name='60-69';group=5;end;
else if score<80 then do;name='70-79';group=6;end;
else if score<90 then do;name='80-89';group=7;end;
else do;name="90-100";group=8;end;
cards;
76 85 80 90 83 65 88 64 91 58 58 77 82 77 79 81
73 82 48 74 80 65 67 70 61 88 66 100 90 86 87 58
26 89 71 91 84 62 83 60 70 79 74 82 90 81 64 74
50 88 82 99 61 85 86 85 84 81 78 56 75 88 87 80
89 94 79 84 87 92 95 94 64 91 81 46 46 90 83 96
80 71 89 87 82 73 78 89 22 60 85 45 99 96 74 97
57 73 68 90 83 92 68 76 65 66 80 84 81 82 94
;
proc sort data=score03 out=score;by score;
proc print data=score;run;
得到结果如图(部分结果):