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 2006)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sat, 16 Sep 2006 14:46:59 -0300
Reply-To:     Carlos Renato <renato.stat@gmail.com>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Carlos Renato <renato.stat@gmail.com>
Subject:      Re: adding "T2" to variable names
Comments: To: Hal 9000 <9000.hal@gmail.com>
In-Reply-To:  <f7e91e6d0609161021o3c050e38k48a4b1c80f9393b8@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Dear Friend

Use this procedure with macro for solve your problem. This is a sample for four variables v1 v2 v3 and v4. You can make this with more variables with any names. Very much thanks.

/*--------------------------------------------------------------------------------------- DEFINE renamefort2 (ListVariables=!CMDEND) !DO !Variables !IN (!ListVariables) RENAME VARIABLES (!Variables = !CONCAT('T2_',!Variables)). !DOEND. !ENDDEFINE. /*--------------------------------------------------------------------------------------- renamefort2 ListVariables=v1 v2 v3 v4. /*---------------------------------------------------------------------------------------

Carlos Renato

Statistician +55 (81)3581.1246


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