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 (September 2008, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 9 Sep 2008 12:39:06 -0400
Reply-To:     roger.s.clark@CENSUS.GOV
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "NOMAIL Roger S. Clark" <roger.s.clark@CENSUS.GOV>
Subject:      Re: renaming a field
Content-type: text/plain; charset=US-ASCII

Hi, Heena;

I have had success with this.

data final; set test; rename Company = name; run;

> -----Original Message----- > From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of hd > Sent: Tuesday, September 09, 2008 8:27 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: renaming a field > > Hi I am really stuck have been trying to find some solution but to no > avail. > > I have a dataset called test, I want to rename some of the fields. > > For example instead of Company i would like to rename it as name > > I am trying this command below but the field doesnt change. Does > anyone know how to do this? > > data final (rename = (Company = name)); > set test; > run; > > Many Thanks > Heena

Thanx, Roger S. Clark Address Products Management Branch 763-9177 4H584U


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