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]

Re: st: .ado and .plugin


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: .ado and .plugin
Date   Thu, 2 Dec 2010 10:38:53 -0500

Cecilia Ann <xqcecilia@msn.com>:
Saying merely that something "does not work" is of no use. Instead
tell us what you have done to diagnose the problem, what you typed and
what Stata replied.  Start by defining a very simple program and
making sure you understand how and where the files should be written:

file open t using ok.ado, write
file write t "prog ok" _n "di c(alpha)" _n "end" _n
file close t
type ok.ado
which ok
ok

The -type- command can be a useful diagnostic tool if you have saved a
file in a non-text format, and -which- can tell you if you have saved
a file in an inaccessible location.

On Thu, Dec 2, 2010 at 10:26 AM, Cecilia Ann <xqcecilia@msn.com> wrote:
> yes, the ado file defines the programm and the program name and ado file name are same.
> I put them in the ado directory.
>
> But it still does not work.
> ----------------------------------------
>> Date: Thu, 2 Dec 2010 09:52:27 -0500
>> To: statalist@hsphsun2.harvard.edu
>> From: kantor.d@att.net
>> Subject: Re: st: .ado and .plugin
>>
>> At 09:38 AM 12/2/2010, Cecilia Ann wrote:
>>
>> >I write some new program in .ado and .plugin files. I want to use
>> >them to do analysis and plot graphs. I put them together in stata11
>> >ado file. But when I type in new command in stata, there is error
>> >reminder. Stata says the command is unrecognized.
>> >
>> >Could you please tell me how to generate new command based on these
>> >ado files and plugin? How to make these new program files work in STATA11?
>>
>> I'm not acquainted with plugins, but for ados,...
>> 1, does the ado file define the program (-program def...-)?
>> 2, is the defined program the same name as the file (e.g., file
>> myprogam.ado defines myprogram)?
>> 3, is the ado file located in either the current directory or your
>> ado directory (or appropriate subdirectory)?
>> HTH
>> --David
>>
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index