Date: Wed, 17 Sep 2003 15:45:08 +0800
Reply-To: mmxell <docdoc1357@TIPGOD.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: mmxell <docdoc1357@TIPGOD.COM>
Organization: Another Netscape Collabra Server User
Subject: create dataset with added column
Hi,
I want to create a dataset from a .txt file (say desc.txt). The content of
the file contains only 1 text description(sample as below)
abc
xyz
aaa
I want to create a dataset that has 2 fields: 1)index 2)desc , the result
dataset desired is as follows:
index desc
1 abc
2 xyz
3 aaa
4 ...
5 ....
and etc.
can I do it in the DATA step? Thanks for the advice.
mmxell
|