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 (June 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 10 Jun 2008 13:02:53 -0700
Reply-To:   Peter <crawfordsoftware@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Peter <crawfordsoftware@GMAIL.COM>
Organization:   http://groups.google.com
Subject:   Re: reading variables enclosed in quotes
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset=ISO-8859-1

On Jun 10, 8:56 pm, rmat <reg...@gmail.com> wrote: > Hi > > I am trying to read a text file containing variables enclosed in > quotes like given below. There are space between variables. Can you > please help me to read this data into SAS? > > "Name" "Age" "State" > "Smith" "22" "NJ" > "Tom" "44" "CT" > "Shake" "34" "CA" > --- > --- > --- > --- > --- > Thanks very much, Regi

data ; infile yourdata DSD dlm= ' ' firstobs= 2 ; length name $20 age 8 state $2 ; input name age state ; run;


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