Date: Tue, 20 Sep 2005 06:29:41 -0700
Reply-To: Toby <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Toby <tobydunn@HOTMAIL.COM>
Subject: Re: add an index column
Content-Type: text/plain; charset="iso-8859-1"
All you need to do is something like the following:
Data one (index = (IndexVar)) ;
set something ;
IndexVar = compress("Example_"||_n_) ;
I would like to add an INDEX column (to index each row/example) into an
existing dataset. So, the first column would be in the form as floow:
I tried to use DATA step with SET statement but the index does not
increment. Could some please please help?