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 (August 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 27 Aug 2002 09:19:55 -0400
Reply-To:   Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Gerhard Hellriegel <ghellrieg@T-ONLINE.DE>
Subject:   Re: Importing one long record

On Mon, 26 Aug 2002 20:42:37 +0200, Carsten Fogh Madsen <cafo@INT.TELE.DK> wrote:

>Hi, > >I have a datafile where there seems to be only one record. The format of the >record is: >12345 23456 34567 45678 >The record length is more than 32767. > >What I do not know the syntax for, is that it a new record after the 10 >blanks and not a new variable. > >/ CAFO

That might be different on the operating systems. You should find out, which RECFM you can use, e.g. RECFM=U on OS390. The record format which causes SAS to see the data as a kind of stream. Then simply use one variable to read the data. The default delimiter is blank, so that should lead to the right result.

On Win something like:

data test; infile "c:\test.dat" recfm=N; input a; run;

should do the job.


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