/* is this what you want? */
data test;
input group total yes no;
datalines;
1 116 85 31
2 120 107 13
; run;
data long;
set test;
do i = 1 to yes;
heal = 1;
noheal = 0;
result ='heal ';
output;
end;
do i = 1 to no;
heal = 0;
noheal = 1;
result = 'no_heal';
output;
end;
drop total i yes no;
run;
proc print data=long; run;


雷达卡




京公网安备 11010802022788号







