Bookmark and Share

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

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

Re: st: .ado and .plugin

From   Austin Nichols <[email protected]>
To   [email protected]
Subject   Re: st: .ado and .plugin
Date   Thu, 2 Dec 2010 10:38:53 -0500

Cecilia Ann <[email protected]>:
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

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 <[email protected]> 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: [email protected]
>> From: [email protected]
>> 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:

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