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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: RE: RE: Error message while renaming


From   "Md. Alauddin Majumder" <mm4v@mtmail.mtsu.edu>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Error message while renaming
Date   Fri, 12 Apr 2013 22:23:12 +0000

Dear Sarah, thank you very much!

________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] on behalf of Sarah Edgington [sedging@ucla.edu]
Sent: Friday, April 12, 2013 5:18 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Error message while renaming

You can't rename the variable MAR_STATUS_1997.02 because that's an invalid
name.
You can't use a period as part of a variable name.  See -help varname-
-Sarah

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Md. Alauddin
Majumder
Sent: Friday, April 12, 2013 2:58 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: Error message while renaming

Dear Statalist,
I want to use the following command to rename a variable: rename E7011702
MAR_STATUS_1997.02. It returns the following error message.

too many wildcards in newname
    You requested E7011702 be renamed MAR_STATUS_1997.02.  There are more
wildcards in new than in old.
    Wildcards in old and new correspond one-to-one from left-to-right unless
you specify explicit subscripts in
    new.  Anyway, rename ran out of wildcards in old when matching the
wildcards in new.  Perhaps you just made
    a mistake or perhaps you forgot an explicit subscript in new.  Or
perhaps you forgot to specify option
    addnumber, which allows you to specify an extra #, (#), (##), ...
r(198);

Is there any way out? Pls note that I prefer to keep the name exactly
MAR_STATUS_1997.02.  Thanks in advance.


Regards
Majumder




















*
*   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/


*
*   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/



*
*   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/


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