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 (September 2005, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 8 Sep 2005 15:18:06 -0700
Reply-To:     Jerry <zhiweiwang@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jerry <zhiweiwang@GMAIL.COM>
Organization: http://groups.google.com
Subject:      How to input data from different column for different rows
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

I am wondering if there is a way to use "input" statement to read in data that are in different columns. For example, if I have the following data:

77343 A XX XX 2 7 B XX XX 2 2 2 c XX XX

I want to start reading in the data from the letters, i.e. the first variable value for each obs will be A, B, and c respectively. However, A, B, C are not in the same column. The data before A, b, and c is really a mess so you can't use list\formatted input.

I am new to SAS. please forgive me if this question is stupid. Thank you in advance.


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