Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: error ocurred loading .ado file (ccmatch.ado)


From   Phil Clayton <[email protected]>
To   [email protected]
Subject   Re: st: error ocurred loading .ado file (ccmatch.ado)
Date   Wed, 22 Feb 2012 23:35:14 +1100

You probably installed more than one version of -ccmatch- (ie the two versions listed by Muhammad). Unfortunately it's possible to install both of them and confuse Stata (I just tried this out for myself).

How did you install it originally? The best way is from within Stata, eg -ssc install ccmatch-. You can update such files using -adoupdate-.

If you installed it by downloading the files from the web and manually saving them, this may explain the html header. Having said that, the fact that it worked earlier does suggest an update problem - if you think this is what happened, perhaps you should notify the provider of the update in case something was/is misconfigured.

Phil

On 22/02/2012, at 11:23 PM, Benjamin Niug wrote:

> Out of curiosity:
> 
> When typing - ado uninstall ccmatch- I received the following error message:
> "criterion matches more than one package"
> 
> Although I had deleted the files from the ado folder which I supposed
> was in use. What is this reason for that?
> 
> 
> 
> 
> 2012/2/22 Benjamin Niug <[email protected]>:
>> Thanks.
>> 
>> It seems that in the folder C:\Program Files\Stata11\ado\updates\c
>> 
>> there was an update installed which included an <html (...)> header.
>> After deleting the files manually and reinstalling it seems to work.
>> 
>> 
>> 2012/2/22 Phil Clayton <[email protected]>:
>>> It sounds like the ccmatch.ado file might have become corrupted, and has a "<" at the start of the file (leading to the error message).
>>> 
>>> You could try running -viewsource ccmatch.ado- to see what's actually in the file.
>>> 
>>> In any case I would try removing -ccmatch- and reinstalling it:
>>> ado uninstall ccmatch
>>> ssc install ccmatch
>>> 
>>> Phil
>>> 
>>> On 22/02/2012, at 11:02 PM, Benjamin Niug wrote:
>>> 
>>>> It does not help (but thx).
>>>> 
>>>> Doing that, I get the following reply:
>>>> 
>>>> ----
>>>> package name:  ccmatch.pkg
>>>>        from:  http://fmwww.bc.edu/RePEc/bocode/c/
>>>> 
>>>> checking ccmatch consistency and verifying not already installed...
>>>> all files already exist and are up to date.
>>>> -----
>>>> 
>>>> But the error message mentioned before continues to appear when
>>>> executing -ccmatch-
>>>> 
>>>> Any further suggestions?
>>>> 
>>>> 
>>>> 2012/2/22 Muhammad Anees <[email protected]>:
>>>>> This problem can arise because the command is not installed, So check
>>>>> from command line what -findit ccmatch- results.
>>>>> 
>>>>> You will get
>>>>> 
>>>>> ccmatch from http://www.elwoodcook.com/stata
>>>>>    ccmatch can be used to generate case-control matches in your data based on
>>>>>    criteria specified in other variables. / by Daniel Elwood Cook
>>>>> 
>>>>> ccmatch from http://fmwww.bc.edu/RePEc/bocode/c
>>>>>    'CCMATCH': module to match observations on specified criteria / ccmatch
>>>>>    allows you to match observations (individuals) on the / basis of any
>>>>>    specified variables.  / KW: data management / KW: matching / Requires:
>>>>>    Stata version 11 / Distribution-Date: 20111213 / Author: Daniel E. Cook,
>>>>> 
>>>>> Now you can click on the first line of each section and install it for use.
>>>>> 
>>>>> On Wed, Feb 22, 2012 at 4:48 PM, Benjamin Niug
>>>>> <[email protected]> wrote:
>>>>>> Hi,
>>>>>> 
>>>>>> I am faced with the following problem/curiosity: I have installed the
>>>>>> ccmatch.ado file. It worked nice some time ago.
>>>>>> 
>>>>>> However, whenever I execute the command -ccmatch-, I get the following
>>>>>> error code:
>>>>>> 
>>>>>> "unrecognized command:  < invalid command name
>>>>>> (error occurred while loading ccmatch.ado)
>>>>>> r(199);"
>>>>>> 
>>>>>> All my other .ado files (basic and plus) seem to work fine and I am
>>>>>> using STATA 11. I tried to delete and reinstall the .ado and but it
>>>>>> did not work. Do you have a suggestion what to do?
>>>>>> 
>>>>>> Thanks in advance.
>>>>>> *
>>>>>> *   For searches and help try:
>>>>>> *   http://www.stata.com/help.cgi?search
>>>>>> *   http://www.stata.com/support/statalist/faq
>>>>>> *   http://www.ats.ucla.edu/stat/stata/
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> 
>>>>> Best
>>>>> ---------------------------
>>>>> Muhammad Anees
>>>>> Assistant Professor/Programme Coordinator
>>>>> COMSATS Institute of Information Technology
>>>>> Attock 43600, Pakistan
>>>>> http://www.aneconomist.com
>>>>> 
>>>>> *
>>>>> *   For searches and help try:
>>>>> *   http://www.stata.com/help.cgi?search
>>>>> *   http://www.stata.com/support/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/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/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/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/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index