Macro contents are not saved within data files. Therefore
you can only store their contents in other ways in Stata
data files (notably as characteristics) or you can arrange
that locals or globals are re-defined in a new session.
Thus globals you always need may be defined in profile.do
or globals you sometimes need in some other .do file that you
run at your discretion. As locals may be only be defined _locally_
they raise other issues which range from not re-defining them
to the more esoteric command -c_local-, of which it has been
said that you should only use it once you have worked out what
it does and why it is dangerous, despite the fact that there is
no documentation for it.
Nick
[email protected]
Rachel
> Is there a way to store local or global variables for use in future
> Stata sessions? I realize that one can simply store the definitions
> in a do file, but I'm wondering whether there is a simpler way. I've
> looked in the programming manual, but did not find an answer.
*
* 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/