Statalist


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

Re: st: RE: saving local macros


From   Richard Goldstein <[email protected]>
To   [email protected]
Subject   Re: st: RE: saving local macros
Date   Wed, 07 Jan 2009 11:16:56 -0500

I admit that I don't fully understand what is wanted or why, but ...

why not just use globals while debugging and then switch back to locals when done?

Rich

Ashim Kapoor wrote:
Umm the local macros are created on the way to using / saving  a data
set, so I can't just define them on my own, hence the need to save
them. They are cooked along the way.

As Maarten said I can   use " notes " but I dunno how to recover them
from notes.

Thank you,
Ashim

On Wed, Jan 7, 2009 at 9:32 PM, Nick Cox <[email protected]> wrote:
You could put a series of definitions in a do-file and then -run- or
-do- when you reload the dataset.

Nick
[email protected]

Ashim Kapoor

I wish to do the following : -

stata code
.....
.....
save dataset,replace
save list_of_local_macros
...
...

I wish to do this as it makes it easier to debug a code, cos then I
can use the dataset and the list of macros and run a small program on
the output only from that point in the code.

Is there a way to save local macros ?
*
*   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