Are you always forget to start logging your analysis?
Put this profile.do in your Stata system directory.
Everytime you open stata whether from the start menu or from your local data directory. It will create a log file for you with date and time as the file name.
* now you don't have to worry about forgetting to create log file again :)"
*profile.do
set memory 100m
set more on
local date ='$S_DATE'
local day = substr('`date'',1,2)
local mon = substr('`date'',4,3)
local yr = substr('`date'',8,4)
local time = '$S_TIME'
local hour = substr('`time'',1,2)
local min = substr('`time'',4,2)
local sec = substr('`time'',7,2)
log using '`day'`mon'`yr'.`hour'`min'`sec'.log'
Thursday, March 27, 2008
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment