* These lines to be added to the end of your profile.do to automatically * log your Stata session. * Author: Dean H. Judson, Washington State Univ. capture program drop autolog program define autolog mac def _Name=1 mac def _retc=602 while %_retc==602 { cap log using c:\logs\auto`%_Name`.log, noproc mac def _retc=_rc mac def _Name=%_Name+1 } mac drop _Name mac drop _retc end autolog program drop autolog di in bl " log on..."