程序如下:
data a;
do n=1 to 1000;
group=1;
do i = 1 to 5;
status=round(ranuni(20100628),1);
surtime = ranexp(20100628) / 0.02;
if surtime >50 then do;
surtime=50;
status=0;
end;
output;
end;
end;
run;
data b;
do n=1 to 1000;
group=2;
do i = 1 to 5;
status=round(ranuni(20100629),1);
surtime = ranexp(20100629) / 0.02;
if surtime >50 then do;
surtime=50;
status=0;
end;
output;
end;
end;
run;
data c;
do n=1 to 1000;
group=3;
do i = 1 to 5;
status=round(ranuni(20100630),1);
surtime = ranexp(20100630) / 0.02;
if surtime >50 then do;
surtime=50;
status=0;
end;
output;
end;
end;
run;