data ffev;
set _null_;
run;
%macro ffev;
%do i=1 %to 9;
proc sql;
create table ffev_temp as
select a.*
from ffev_&i a inner join modsel b
on (a.permno=b.permno) and (a.model=b.model);
quit;
data ffev;
set ffev ffev_temp;
run;
%end;
%mend;
%ffev;
The variable name was 'model1', 'model2' or so in the above writting while you used a.model=b.model, the variable name as 'model', in the code.
But I am not sure if that is the problem since it is very obvious.
Additionally, if data set 'ffev' was not defined prior to the macro, that could be an error. However, as you said, there was no errors in the log.
The variable name was 'model1', 'model2' or so in the above writting while you used a.model=b.model, the variable name as 'model', in the code.
But I am not sure if that is the problem since it is very obvious.
Additionally, if data set 'ffev' was not defined prior to the macro, that could be an error. However, as you said, there was no errors in the log.