Date: Tue, 19 Oct 2004 19:33:02 -0700
Reply-To: Claudia <beanieclo@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Claudia <beanieclo@HOTMAIL.COM>
Organization: http://groups.google.com
Subject: Column name
Content-Type: text/plain; charset=ISO-8859-1
Hi,
I imported an excel file into SAS. Now I would like to change the
column (or array) names so that it's easier for me to compute my
models afterwards.
I know that I could either change them directly in excel or again
directly in SAS using for instance var1=new_varname, but since I have
so many columns (more than 1,000), I don't want to do this by hand.
Is there a way (I guess using a loop) to rename my columns x1, x2, x3,
etc... without going one at a time?
Starting at the 4th column, I would like to name my columns x1, x2,
...xn
Sorry for the newbie question,
Claudia
|