LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (June 1998, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page