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 (September 1998, week 5)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 29 Sep 1998 14:51:03 -0700
Reply-To:     Pamela Mery <pmery@CCSF.CC.CA.US>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Pamela Mery <pmery@CCSF.CC.CA.US>
Subject:      aggregating a single numeric field by an ID#
Content-Type: TEXT/PLAIN; charset=US-ASCII

Hi all. Short question which hopefully has an easy answer. I have large files with multiple student records for each class they attend. I would like to total the attendance hours for each student for all of the classes that student enrolled in. In the example below three ID numbers are represented. If totalled, each of their hours would equal fifteen. I imagine the first step is to sort by ID, but then what???

ID HOURS 14890 8 14890 2 14890 5 28954 12 28954 3 88965 15 99954 etc.

Thanks for any and all help. BTW, I asked an EXCEL question a while ago. None of the answers exactly served, but if I do figure it out, I'll post to the list.

Thanks again.

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Pamela M. Mery Institutional Research & Planning City College of San Francisco 50 Phelan Avenue San Francisco, CA 94112 E-mail:pmery@ccsf.cc.ca.us Phone:415.239.3227 Fax:415.239.3010

** BE AN ORGAN DONOR ** * sign a donor card *

For more information lookup http://www.transweb.org -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


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