Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | "Joseph Coveney" <stajc2@gmail.com> |
To | <statalist@hsphsun2.harvard.edu> |
Subject | st: Re: Problem with variable names using Insheet |
Date | Mon, 13 May 2013 11:41:32 +0900 |
The -rensfix- and -renpfix- commands do not belong inside the loop. Sorry. rensfix aci renpfix aci foreach var of varlist _all { local variable_label : variable label `var' local variable_label : subinstr local variable_label "+aci-" "", all } Joseph Coveney * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/