Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: saving contents of macros


From   Neil Shephard <[email protected]>
To   [email protected]
Subject   Re: st: saving contents of macros
Date   Wed, 26 Jan 2005 15:45:17 +0000

On Wed, 26 Jan 2005 10:35:14 -0500, mganz <[email protected]> wrote:

> I've looked high and low but I can't find anything on this:
> Is there a way to save the contents of all of the global and local macros
> currently in memory to a file so that they can be restored later after
> restarting Stata?
> 
> I've looked high and low but I can't find anything on this:
> Is there a way to save the contents of all of the global and local
> macros currently in memory to a file so that they can be restored
> later after restarting Stata?
> 
If they are macro's you are specifying yourself then you can place
them in your profile.do file and they will be loaded whenever you
start Stata.

If they are built-ins macros, well they're built in aren't they :-)

. search profile.do

[GSM]   A . . . . . . . . . . . . .  Starting and stopping Stata for Macintosh
        (help profilem)

[GSW]   A . . . . . . . . . . . . . . . .  More on starting and stopping Stata
        (help profilew)

[GSU]   A . . . . . . . . . . . . . . . . Starting and stopping Stata for Unix
        (help profilew)

FAQ     . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . profile.do
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .  J. Wernow
        3/01    How can I automatically execute certain commands every
                time I start Stata?
                http://www.stata.com/support/faqs/lang/profiledo.html


HTH's

Neil
*
*   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