%macro lamda(num);
%do lamda=1 %to #
data bootind;
set boot1;
if &lamda>ICER1 then indicator=1;
else indicator=0;
run;
proc means data=bootind;
var indicator;
output out=x&lamda mean=mean;
run;
%end;
data final;
set
%do i=1 to #
x&i
%end;
;
run;
%mend;