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 (July 2007, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Mon, 9 Jul 2007 10:39:42 -0700
Reply-To:   vldesilva@GMAIL.COM
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   vldesilva@GMAIL.COM
Organization:   http://groups.google.com
Subject:   import text files
Comments:   To: sas-l@uga.edu
Content-Type:   text/plain; charset="iso-8859-1"

Hello all,

I hvae a text file having a format like below

FHQC 121 H 1234 A14 FHQC 123 D 1235 A14 D 1235 A15 FHQC 124 ---------------------------- Date: blah blah ---------------------------- D 1236 A15

I wan to create a SAS data set that looks like the following

FHQC 121 H 1234 A14 FHQC 123 D 1235 A14 FHQC 123 D 1235 A15 FHQC 124 D 1236 A15

The problem is The lines after FHQC can be 1 or more. It is not a fixed number of lines. And I also want to ignore the lines in the middle like ---------------------------- Date ----------------------------

What is the easiest way of going about doing this. Appreciate your input.


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