Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: Rename all?

From   "Fogel, Ariel" <>
To   "" <>
Subject   st: RE: Rename all?
Date   Wed, 7 Nov 2012 18:18:42 +0000

Why not simply use a loop?

forvalues i =1/10{
rename prc`i' shrout`i'


-----Original Message-----
From: [] On Behalf Of Zhangqunzi
Sent: Wednesday, November 07, 2012 1:13 PM
To: Stats
Subject: st: Rename all?

Dear all,

I am trying to rename a current varlist prc1...10 into shrout1....10.

I tried 
rename prc* shrout* 

But it doesn't work, what command should I use then?

Thanks a lot in advance
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index