LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (October 2004, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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


Back to: Top of message | Previous page | Main SAS-L page