Statalist


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

Re: st: RE: saving local macros


From   Philipp Rehm <[email protected]>
To   [email protected]
Subject   Re: st: RE: saving local macros
Date   Wed, 07 Jan 2009 16:53:47 +0000

.
I think that's what do-files are for.

Nevertheless: how about building up a matrix which contains the local macros you encounter, which you then save into a variable? You could then recover the local macros with -levelsof-, for example.

But I guess a do-file is the more straightforward approach...

HTH,
Philipp


Ashim Kapoor wrote:
I somehow feel that you can save local macros in a way other than
using -notes- can you ??

Thank you,
Ashim.

On Wed, Jan 7, 2009 at 9:50 PM, Nick Cox <[email protected]> wrote:
I don't see that where they came from has any bearing on the question.
If you have locals accessible in your session, you can save them
(although not -save- them directly).

Nick
[email protected]

Ashim Kapoor

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.

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/

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

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