Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: using current_ time to manage the log file
From
"Nick Cox" <[email protected]>
To
<[email protected]>
Subject
st: RE: using current_ time to manage the log file
Date
Wed, 7 Jul 2010 18:26:46 +0100
See e.g.
http://www.stata.com/statalist/archive/2005-03/msg00831.html
Nick
[email protected]
Guang Dai
I find it is difficult to trace back my research by looking at the log
files. Ideally, I'd like to name the
log file with the time the do file executes, e.g., the log file is
named as "10_25_7_July_2010" where 10_25 is the
time and 7_July is the date.
with this in mind, I'd like to use
***************begin ******
log using "/.............../"`c(current_time)'_`c(current_date)'.smcl",
replace;
**********end********
but failed because current_time have punctuation marks like ":" which
can't be included in a file name.
*
* 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/