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 (August 1998, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 7 Aug 1998 16:02:25 -0500
Reply-To:   "Boylan, Dave" <dboylan@UTILICORP.COM>
Sender:   "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:   "Boylan, Dave" <dboylan@UTILICORP.COM>
Subject:   Summarize by 2 digit SIC
Content-Type:   text/plain

I have a data set with a with a SIC field. The SIC codes are of the 4 digit variety. I would like to summarize my data set by a 2 digit level sic code (Truncate the last 2 digits of the 4 digit SIC). I guess the brute force method would be to create a new variable "SIC2" as INT(SIC/100) and then summarize by SIC2. Is there a simpler (and faster) way to do this without creating an additional variable (e.g., format the SIC so it looks like it is 2 digits)?

Thanks in advance. -------------------------------------- David Boylan Corporate Forecasting UtiliCorp United, Inc. 816.467.3062 --------------------------------------


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