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 (March 2001, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 16 Mar 2001 08:20:42 -0500
Reply-To:   John Jones <jonesj@PHARMARESEARCH.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   John Jones <jonesj@PHARMARESEARCH.COM>
Subject:   Re: Adding Prefix to Variable Names
In-Reply-To:   <OF72856385.B215703B-ON41256A10.0068D9C0@db.com>
Content-Type:   text/plain; charset="iso-8859-1"; format=flowed

It is possible to use the SAS reserved word "_character_" on the TRANSPOSE var statement. I do not know whether there is an "_numeric_" statement too.

jj

>Antwort an: ouisc@yahoo.com > >Betreff: Adding Prefix to Variable Names >Nachrichtentext: > > >Good morning, > >I am working on a data set containing hundreds of observations as well as >hundreds of variables. My ultimate goal is to add three characters, "CA_" >as a prefix to all my variable names. > >My plan has been to use PROC TRANSPOSE to create the variable _NAME_, which >I'm able to manipulate, and then PROC TRANSPOSE everything back producing >the new manipulated variable names. But I've run into a simple problem >here. I'd have to VAR the entire list of variables so that character >variables are also transposed. > >Is there an easier way to accomplish this task other than PROC TRANSPOSE? >And if not, is there an easy way to produce a list of variable names that >would be easy to cut and paste into a VAR statement? > >Craig Gale >Biostatistician >Marshfield Clinic >Marshfield, Wisconsin > > > > > >-- > >Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte >Informationen. Wenn Sie nicht der richtige Adressat sind oder diese E-Mail >irrtümlich erhalten haben, informieren Sie bitte sofort den Absender und >vernichten Sie diese Mail. Das unerlaubte Kopieren sowie die unbefugte >Weitergabe dieser Mail ist nicht gestattet. > >This e-mail may contain confidential and/or privileged information. If you >are not the intended recipient (or have received this e-mail in error) >please notify the sender immediately and destroy this e-mail. Any >unauthorised copying, disclosure or distribution of the material in this >e-mail is strictly forbidden.


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