明白了,解释很到位。已经更正:
data beijing_price;
set sasuser.salary;
if city="北京";
dp=dif(price);
if dp=. then dp=price;
if dp<0 then type="跌";
else if dp=0 then type="平";
else if dp>0 then type="涨";
proc print;
run;
明白了,解释很到位。已经更正:
data beijing_price;
set sasuser.salary;
if city="北京";
dp=dif(price);
if dp=. then dp=price;
if dp<0 then type="跌";
else if dp=0 then type="平";
else if dp>0 then type="涨";
proc print;
run;