options missing=' ';
data cntl;
retain fmtname 'F_RONEIN' type 'N' sexcl "N";
length s e i 8 label $64;
s=0;
do e = 0, 1e2 to 5e2 by 1e2, 1e3 to 1e4 by 1e3, 15e3,.H;
i + 1;
start = s;
end = e;
select(end);
when(.h) do;
hlo = 'H';
label = catx(' ',cats('(',i,')'),cats(s,'+'));
end;
otherwise do;
hlo = ' ';
label = catx(' ',cats('(',i,')'),catx('-',s,ifn(e=0,.,e)));
end;
end;
output;
s = e;
sexcl = 'Y';
end;
run;
proc print;
run;
proc format cntlin=cntl cntlout=cntlout;
run;
proc print;
run;
... View more