Date: Wed, 22 Mar 2000 18:49:33 +0800
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: wong <wongant@HONGKONG.COM>
Subject: A Read infile problem. Please Help Me.
Content-Type: text/plain; charset=us-ascii
I would like to ask a question about reading external file.
Suppose I have the following datafile:
line 1: Mary Chan Wan Kwan <End of line>
line 2: John Wong Yiu <End of line>
line 3: Bill Gates<End of line>
I try to read this with the following code:
INPUT NAME $ 1-50;
The maxium length of these NAME is 50. But most names are shorter less
than 50. My program fail to read the file. There are 11000 obs in the
file but only 3000 obs are read. I hope someone are so kind to teach me
how to read this file. Thank you very much in advance.
Morevoer, please let me know if you know which SAS book contains many
READ sample code.