Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Strange behaviour with passing parameters to a Stata program


From   Richard Williams <[email protected]>
To   [email protected], [email protected], [email protected]
Subject   Re: st: Strange behaviour with passing parameters to a Stata program
Date   Sun, 13 Jul 2008 01:11:09 -0500

At 11:44 PM 7/12/2008, Salah Mahmud wrote:
Stata completely ignores the notab parameter when it is passed to the
program below.
On tracing, notab is always =="" no matter what. Change the parameter
name in the syntax statement to anything else and it works as
expected. Anybody knows what is going on?

I'm running Stata MP v10  born 27 May 2008

Thanks,



cap program drop smtgen
program define smtgen
syntax anything[, Gen(string) Label(string) VLabel(string) replace notab ]
Also, I believe the quick answer to your question is to change notab to NOTAB in the above.


-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME: (574)289-5227
EMAIL: [email protected]
WWW: http://www.nd.edu/~rwilliam

*
* 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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index