下面的一段程序运行后出现,warning:没有解析符号引用B。
只出现三行,然后就没了。什么意思?
data _null_;
set research.investment;
format invtime 8.0;
a='%syndicate_count(';
b=',';
c=')';
file "syndicatecount.txt";
put a $ investee $ b $ institution $ b $ invtime c $;
run;
proc sql noprint;
create table syndicate
(investee char(44), institution char(48),invtime num,syndicate num);
%macro syndicate_count(investee,institution,date);
select count(*) into :count
from research.investment
where investee="&investee" and invtime=&date;
insert into syndicate(investee, institution,invtime,syndicate)
values ("&investee","&institution",&date,&count);
%mend;
%include"syndicatecount.txt";
quit;
proc sort data= research.investment out= research.investment;
by investee institution invtime;
proc sort data=syndicate out=syndicate;
by investee institution invtime;
data research.investment;
merge research.investment syndicate;
by investee institution invtime;
run;