Statalist


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

st: Does a do file know its own name?


From   "Skinner Jane Dr (MED)" <[email protected]>
To   [email protected]
Subject   st: Does a do file know its own name?
Date   Thu, 16 Aug 2007 16:48:49 +0100

Hi

Is there any way of obtaining the string "MyDoFile" programmatically
from within MyDoFile.do?  I would like to write to a log file with
the same name (different extension, obviously) in a way that is
robust to renaming or copying the do file, amongst other things.

Thanks,

Jane
-- 
Dr Jane Skinner
School of Medicine, Health Policy & Practice
University of East Anglia, Norwich NR4 7TJ
E-mail: [email protected]  Tel: 01603 593120
*
*   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