On Tue, Feb 24, 2009 at 1:52 AM, Brian Karfunkel <[email protected]> wrote:
> Hello all,
>
> Does anyone know how to output custom error messages? By this I mean
> either or both of:
>
> a) inserting my own strings into the "_______"s listed in error files.
> So, while "confirm variable foo" produces "variable foo not found;
> r(111)", I want to be able to have a command throw an error 111 with a
> message like "index variable not found".
<snip>
display as error "index variable not found"
exit 111
--
Roger Harbord
http://www.epi.bris.ac.uk/staff/rharbord.htm
*
* 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/