Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: user written ado file


From   Joly.Patrick@ic.gc.ca
To   statalist@hsphsun2.harvard.edu
Subject   st: RE: user written ado file
Date   Wed, 12 Feb 2003 20:55:19 -0500

Kompal Sinha [mailto:kompal.sinha@anu.edu.au],

> I have written my own ado file in notepad, saved it as 
> alpha.ado in C:\ado
> folder as well as stata folder. when I am trying to type the 
> alpha command
> its giving the error "unrecognized command: alpha". Whats wrong here??

Do not store any files in "C:\ado" unless you have specifically set this
directory in your ado path.  Move your file to the "C:\ado\personal"
directory if there is one.  In other words, make sure your .ado file resides
in one of the directories that lie on your ado path.  To view your ado path,
type

. ma dir S_ADO
S_ADO:
PERSONAL;UPDATES;BASE;SITE;.;STBPLUS;P:\ado\userwrit;P:\ado\tslib;P:\ado\z_a
bbrev;OLDPLACE

and the specific path to most of these directories is given by

. sysdir
   STATA:  C:\Stata\
 UPDATES:  C:\Stata\ado\updates\
    BASE:  C:\Stata\ado\base\
    SITE:  S:\ias\computing\software\stata\ado\site\
 STBPLUS:  P:\ado\stbplus\
PERSONAL:  P:\ado\personal\
OLDPLACE:  P:\ado\z_oldado\

Then type

	which <your_command_name_here>

to see if Stata can locate your program.  If it can't, an error message will
be returned.


Patrick Joly
joly.patrick@ic.gc.ca
pat.joly@utoronto.ca
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index