Date: Wed, 23 Feb 2005 09:57:07 -0800
Reply-To: omugeye <bhuta_zegha@YAHOO.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: omugeye <bhuta_zegha@YAHOO.COM>
Organization: http://groups.google.com
Subject: Reading ASCI text file
Content-Type: text/plain; charset="iso-8859-1"
I have a text file that goes over two lines like:
ID kount <on 1st line>
<list of Variables on 2nd line>
1001 2
999 888
1007 8
111 222 333 444 555 666 777 888
1002 5
987 876 765 654 543
.
.
.
I would the SAS data file to be like:
id count var1-var(Kount)
1001 2 999 888 . . . . .
1007 8 111 222 333 444 555 666 777 888
1002 5 999 888 777 666 555 . . .
I do not know maximum kount. It needs to be determined dynamically.
All help appreciated.
|