Thanks for all the help!!! The set trace option showed me where the problem
was! By the way, Austin was right regarding the xtile arguments (I found
this problem after the sending the message to the list).
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Austin Nichols
Sent: 11 March 2006 12:19
To: [email protected]
Subject: Re: st: Problem with a ado file
Svend's advice is excellent, and very general (though -set traced 2- or even
3 might be necessary sometimes, especially when running a program from
within a do-file). In this case, I'd put my money on
quietly replace `outputvar' == `_tempqt' if `_tempqt' ~=.
since replace takes x=y as an argument, not x==y. The other general point
to make here is, to increase your probability of getting a good answer from
Statalist, include what you typed (in this case, the call to -qtex- along
with the output), preferably using a dataset that ships with Stata or is
easily available via -webuse-.
On 3/11/06, Svend Juul <[email protected]> wrote:
> Nuno sent an ado-file (which I didn't try to understand); it gave an error
message:
>
> invalid syntax
> r(197);
> ----------------------------------------------------------------
>
> Try
> set trace on
> set tracedepth 1
>
> and run the command again. Now you will se what the macros expanded to,
and that may give you a hint.
>
> Without -set tracedepth 1- you may get an overwhelming amount of output.
*
* 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/
*
* 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/