Statalist


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

st: locals and programs


From   Paulo Regis <[email protected]>
To   [email protected]
Subject   st: locals and programs
Date   Sat, 8 Aug 2009 20:08:47 +0800

Hi all,

I have which should be a simple question but still I do not manage to
solve it. I simplified the problem as much as possible. If you run the
following code and use the command -TT, you get an error message.

capture program drop aaa
program define aaa
local aa = TTT
display `aa'
end

capture program drop TT
program define TT
local TTT = 5
aaa
end

How can I use the local "TTT" in the programme "aaa". Solving this
issue may save me much time since the code is quite long

Cheers

Paulo
*
*   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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index