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 (May 2011, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 17 May 2011 11:32:21 -0500
Reply-To:   Joe Matise <snoopy369@GMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Joe Matise <snoopy369@GMAIL.COM>
Subject:   Re: reading text in multiple lines
Comments:   To: "L... L..." <mar.lamack@hotmail.com>
In-Reply-To:   <SNT117-W276A3C833771EED0CE80F4968C0@phx.gbl>
Content-Type:   text/plain; charset=ISO-8859-1

Simple answer: data test; infile datalines flowover; input @"<td>" var1 $50. @"<td>" var2 $50. @"<td>" var3 $100.; put _all_; datalines; <td> some text 1 </td> <td> some text 2 </td> <td> some text some text some text some text some text some text some text</td> ;;;; run;

I leave it to the user the trivial task of removing the trailing </td>.

-Joe

On Tue, May 17, 2011 at 11:03 AM, L... L... <mar.lamack@hotmail.com> wrote:

> Dear all, I need to import a txt file like this: > > <td> some text 1 </td> > <td> some text 2 </td> > <td> some text some text some text > some text some text some text some text</td> > . > . > . > I need to create three variables: > var1: some text 1 > var2: some text 2 > var3: some text some text some text some text some text some text some text > > Please, How can I do this? (sas 9.2) > > best regards; >


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