%macro drugpoint(N=);
%do i=&N %to 7;
%let x=%eval(&N*3);
%let y=%eval((&N+1)*3);
%let drugs_ab=%eval(sum_drugs_&y.M_sum_drugs_&x.M);
%if &drugs_ab=1 or &drugs_ab=-1 %then %do;
%if B_B_&x.M_c ~= B_B_&y.M_c %then IOP_B_B=IOP_&y.M-IOP_&x.M;
%else %if PGA_&x.M_c ~= PGA_&y.M_c %then IOP_PGA=IOP_&y.M-IOP_&x.M;
%else %if Miotic_&x.M_c ~= Miotic_&y.M_c %then IOP_Miotic=IOP_&y.M-IOP_&x.M;
%else %if CAI_&x.M_c ~= CAI_&y.M_c %then IOP_CAI=IOP_&y.M-IOP_&x.M;
%else %if Diamox_&x.M_c ~= Diamox_&y.M_c %then IOP_Diamox=IOP_&y.M-IOP_&x.M;
%else %if Adren_&x.M_c ~= Adren_&y.M_c %then IOP_Adren=IOP_&y.M-IOP_&x.M;
%end;
%end;
%mend drugpoint;



雷达卡




用sql或data以后怎么可以把循环语句和所有变量联系在一起?
京公网安备 11010802022788号







