Statalist


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

Re: st: Executing a string representation of a command


From   David Kantor <[email protected]>
To   [email protected]
Subject   Re: st: Executing a string representation of a command
Date   Mon, 17 Nov 2008 10:31:05 -0500

At 10:25 AM 11/17/2008, Paul Wileyto wrote:
Dear Statalisters,

Suppose I've done some programming that creates a macro containing a string representation of a command. For example:

. ma list vL
vL: label var EMOID_OA_CR_plac "Emotion ID, Overall Correct Response Count, On Placebo."

How do I now execute that string in a macro as if I had type it in, or had written it explicitly as part of a do-file?

If I search on "execute string" in help, there is no response.

Thanks

Paul

Simply type the name of the macro, enclosed in `' marks, as if it were a command.
If vL is the name of your macro, then type
`vL'

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