Date: Fri, 12 Jun 1998 08:40:11 -0400
Reply-To: Diana Noble <diana.noble@PRUDENTIAL.COM>
Sender: "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From: Diana Noble <diana.noble@PRUDENTIAL.COM>
Subject: Re: Format Problem
Content-Type: text/plain; charset=us-ascii
Kathy, you should revise the proc format for your code:
instead of >6-12, switch the syntax to 6<-12. the '<-" indicates that 6
is not part of the range.
******************SAS Code*******************
data test; * Your code - this is fine;
do i = 1 to 150;
duration = i;
output;
end;
run;
********* Revised Code *****************;
proc format;
value durf 0-6 = '1'
6<-12 = '2'
12<-24 = '3'
24<-48 = '4'
48<-120 = '5'
120<-high = '6'
;
proc freq data=test; * Your Code again;
tables duration;
format duration durf.;
run;
Regards,
Diana
|