Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: Accessing and using *.do file filename


From   Eric Booth <ebooth@ppri.tamu.edu>
To   "<statalist@hsphsun2.harvard.edu>" <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Accessing and using *.do file filename
Date   Wed, 22 Jun 2011 03:52:27 +0000

<>

See:
http://www.stata.com/statalist/archive/2011-05/msg01371.html
http://www.stata.com/statalist/archive/2007-08/msg00556.html
http://www.stata.com/statalist/archive/2004-07/msg00628.html

- Eric
__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu

On Jun 21, 2011, at 10:43 PM, Nancy Briggs wrote:

> Hello,
> 
> I am looking for a way to capture the name of the *.do file I am currently
> using so I can display it in the
> output file I create.  c(filename) returns the most recent data file, and
> dir *.do does list the *.do files in the current directory, but I can't seem
> to extract the current *.do file's name.
> 
> Many thanks!
> 
> 
> Nancy Briggs
> Data Management & Analysis Centre
> nancy.briggs@adelaide.edu.au
> 
> 
> 
> *
> *   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/



*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index