没测试过。。。总之用retain就行
data 要得到的数据表名;
set 第一个数据表名;
by id notsorted;
retain old;
if first.id & 涨跌幅<0.1 then old=1;
else if first.id & 涨跌幅>0.15 then old=0;
run;
data 要得到的数据表名;
set 第一个数据表名;
retain old;
if ipo=1 & 涨跌幅<0.1 then old=1;
else if ipo=1 & 涨跌幅>0.15 then old=0;
run;


雷达卡



京公网安备 11010802022788号







