Statalist


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

RE: st: RE: saving local macros


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: saving local macros
Date   Wed, 7 Jan 2009 17:19:36 -0000

So long as your macros don't exceed 244 characters in length. 

Nick 
[email protected] 

Philipp Rehm

True.
How about forcing it into a (string) variable? Even more tedious, but 
perhaps a way to do it.

Ph

Nick Cox wrote:
> A matrix could not be used for macros with string content. (Strictly,
> all macros are strings, but clearly some have numeric content.) 
> 
> Nick 
> [email protected] 
> 
> Philipp Rehm
> 
> 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...
> 
> 
> Ashim Kapoor wrote:
>> I somehow feel that you can save local macros in a way other than
>> using -notes- can you ??

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