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 2005, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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.


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