[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


Is there any way of obtaining the string "MyDoFile" programmatically
from within  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.


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:

© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index