data final;
set fund;
if fundcode=150001 and date=39629;
zero=count(mark, 0);
one=count(mark, 1);
if zero=1 then zeros+zero;
if one=1 then ones+one;
run;
proc sql noprint;
create table final1 as
select *,
max(ones) as oness,
max(zeros) as zeross,
from final;
quit;
data final2;
set final1;
ratio=oness/(oness+zeross);
run;
運(yùn)行到SQL時(shí)總是報(bào)錯(cuò):
14 from final;
-----
79
ERROR 79-322: Expecting a FROM.
我有from final啊,怎么總說沒有form呢??????
那為仁兄幫我看看,謝謝了!