LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 4 Nov 2005 12:45:50 -0500
Reply-To:     "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Tonkovich, Mike" <Mike.Tonkovich@DNR.STATE.OH.US>
Subject:      Code to read a text file
Content-Type: text/plain; charset="US-ASCII"

Help Please! I've got the following file sitting in an Excel spreadsheet. The file contains 30 fields and 450 records. Each "record" contains 5 rows of data. In the example below, "Adams"

Adams 1977 1978 1979 1980 1981 1982 Fawns 2 1 5 10 33 34 Yearlings 60 63 72 94 119 140 Subadults 24 22 23 36 42 49 Adults 13 13 14 15 15 22

is the county name and "Fawns, Yearlings, Subadults, and Adults" are age classes. I would like to create a SAS data set that looks like the following:

county fawn yearling subadult adult year

Adams 2 60 24 13 1977 Adams 1 63 22 13 1978

Etc...

Can anyone provide some suggestions on how I might accomplish this? I would really appreciate your help.

Mike

Michael J. Tonkovich, Ph.D. Wildlife Research Biologist ODNR, Division of Wildlife 360 E. State St. Athens, OH 45701 v(740)589.9920 f(740)589.9925 mike.tonkovich@dnr.state.oh.us


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