I've already indicated that you can -- using a .do file. However, you
would need to use -c_local-, which is not documented. That makes the
-notes- route more advisable for your problem.
Nick
[email protected]
Ashim Kapoor
I somehow feel that you can save local macros in a way other than
using -notes- can you ??
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/