是程序:
data one;
set sashelp.prdsale;
retain temp;
by region descending salary;
if first.region then
do;
temp=salary;
output;
end;
if last.region then
do;
range=salary-temp;
output;
end;
run;
那么请问,最后在OUTPUT DATASET中应该是first和last两个观测值还是first到last一共四个观测值啊???如果是两个观测值的话怎样改这个程序才可以变成四个观测值啊????谢谢啦



雷达卡



京公网安备 11010802022788号







