Date: Tue, 26 Jul 2005 14:16:12 -0700
Reply-To: "data _null_;" <datanull@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "data _null_;" <datanull@GMAIL.COM>
Organization: http://groups.google.com
Subject: Re: Inporting a texte file
In-Reply-To: <42e674a8$0$30230$636a15ce@news.free.fr>
Content-Type: text/plain; charset="iso-8859-1"
I saved your file and got the following result....
Perhaps you can adapt this to your needs.
1 filename in 'trailingat.txt' lrecl=122418;
2 data work.result;
3 infile in pad missover;
4 input var1 $f4. var2 $f7. var3 $f6. @;
5 do while(not missing(var3));
6 output;
7 input var3 $f6. @;
8 end;
9 run;
NOTE: The infile IN is:
File Name=trailingat.txt,
RECFM=V,LRECL=122418
NOTE: 1 record was read from the infile IN.
The minimum record length was 122412.
The maximum record length was 122412.
NOTE: The data set WORK.RESULT has 20401 observations and 3 variables.