Thanks as always to Kit Baum, a new version of the dolog package is now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have an old version of dolog.

The dolog package is described as below on my website. The new version now runs the do-file under the user's current Stata version, instead of under Stata Version 16 as before. The user can of course override this default, either by having a version statement inside the do-file to be run, or (as in the case of a certification script) by using a version prefix, as in

version 16: dolog dolog

to run a certification script named dolog.do.

The new version also updates my affiliation to King's College London, and my email to

roger.newson@kcl.ac.uk

as I now work at King's College London.

Best wishes

Roger

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
package dolog from http://www.rogernewsonresources.org.uk/stata16
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------

TITLE
dolog: Execute commands from a do-file, creating a text or SMCL log file

DESCRIPTION/AUTHOR(S)
dolog and dosmcl (like do) causes Stata to execute the commands stored in
filename.do as if they were entered from the keyboard, and echos the commands
as it executes them, creating a text log file filename.log (in the case of
dolog) or a SMCL log file filename.smcl (in the case of dosmcl). If filename
is specified without an extension, then filename.do is assumed. If filename
is specified with an extension other than .do, or with no extension, then the
log file will still have .log or .smcl as its extension, so dolog and dosmcl
will not overwrite the original do-file. Arguments are allowed (as with do or
run).

Author: Roger Newson
Distribution-Date: 07july2021
Stata-Version: 16

INSTALLATION FILES (click here to install)
dolog.ado
dosmcl.ado
dolog.sthlp
dosmcl.sthlp
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------
(click here to return to the previous screen)