In a macro, when I use this code
proc sql ;
select min(score) into: S from test;
create table test_ as select *, min(score) as minimum from test;
quit;
proc sql;
select count(*) into: C from test_ where score = minimum;
quit;
data final;
set test;
%if %eval(&C.)=1 %then %do;
%if score=&S %then %let grade=0.80;
%else %let grade=0.05;
%end;
run;
Doesn't throw up error, neither the expected result.
Any suggesstions appreciated.
Thanks