I wrote SAS program and facing some difficulty, SAS code is given below Code description The objective of this SAS program is to obtain correct value of variable count in each iteration of macro final. In macro final there are some macro like %macro Boot_Perzentil1, %boot1, %boot_reml1, %boot_grenze1, together all these macros produce a single variable y and that value of y should be checked either < or > 2.49482 under the macro of %Boot_Perzentil1. I got all macros write but code below is not working correctly, every time I run this program get count is 0 even y < 2.49482 %if y < 2.49482 %then %do; %let count=% eval(&count+1); %Put count is &count; %end; %else %do; %let count=&count; %Put count is &count; %end Plz help me Complete SAS Code %macro final(sim); %let count=0; %do rep= 1 %to 2; %let D=&simdata&rep; %macro Boot_Perzentil1(data,pat,b_reps); %do b_rep=1 %to &b_reps; %put Boot &b_rep; %boot1(&data,btest_1,9); %boot_reml1(btest_1,outin_1,9,logAUC,logCmax,1); %end; %boot_grenze1(outin_1,&b_reps); run; %if y < 2.49482 %then %do; %let count=%eval(&count+1); %Put count is &count; %end; %else %do; %let count=&count; %Put count is &count; %end; %mend; %Boot_Perzentil1(&D,9,1); %end; %mend; %final(want);
... View more