用两次data步呀
proc sort data =temp1;
by city Quarter daytime;
run;
/*删除最后一笔*/
data temp1;
set temp1;
by city Quarter daytime;
if last.city=1 or last.quarter=1 then delete;
run;
/*再删除最后一笔*/
data temp1;
set temp1;
by city Quarter daytime;
if last.city=1 or last.quarter=1 then delete;
run;