Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Retrieve most recently executed command


From   "Simo Goshev" <[email protected]>
To   <[email protected]>
Subject   st: Retrieve most recently executed command
Date   Fri, 25 May 2007 10:03:37 -0400

Dear Stata users,

I have been trying to find a way to retrieve the name of the most recently
executed command in Stata. While this is generally not a problem with
estimation commands which usually store their names in ereturn, a command
such as -- xi: testparm i.v_name -- does not leave a tag with its name
behind. There is a way to see the last n executed commands by running --
#review n --, but I am wondering whether there a way to automatically
retrieve this list (or an element of it) and store it in a local, for
example.

Thank you very much!

Best regards,
Simo Goshev


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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