|
You can use the START and END variables in the CNTLIN dataset to control ranges. If an END variable isn't present in the CNTLIN dataset, PROC FORMAT assumes that the end of the range is the same as the beginning of the range.
--
JackHamilton@FirstHealth.com
Development Manager, METRICS
First Health, West Sacramento, California USA
>>> "Khan, Muhammad Z." <mkhan@OXHP.COM> 14Jun1999 11:13 AM >>>
Hi everyone,
I am trying to use proc cntlin on one data set. My data set looks
like this
CPTFR CPTH COMPLET.
ERHOS ERHOS OUTPAT
80000 87999 OUTPAT
89050 89999 OUTPAT
88000 89049 OUTPAT
VISLE VISLE OTHER
ABFAC ABFAC OUTPAT
AMBSG AMBSG OUTPAT
...
...;
I am trying to apply proc cntlin as following
data one (keep=start label fmtname type);
set mylib.cptcode end=lastrec;
retain fmtname 'code' type 'C';
label = complet;
start=cptfr;
output;
if lastrec then do;
hlo= 'O';
start= 'XXX';
label = 'MISS';
output;
end;
run;
The part I can't figure out is that I have some range for some of the
observation, like one of the obs in CPTFR is 80000 and the value for the
corresponding obs in CPTH is 87999. Is there anyway to read ranges in the
proc cntlin.
thanks
Muhammad
|