Johan Osterberg - Product Engineer

Transforming log files in Stata

April 11, 2019

In a previous post we looked at working with log files in Stata. As discussed in that post, Stata files take the file extenstion .smcl. If you by any chance would want to view your logfiles outside of Stata or have them in a generally more compatible format, you can translate them. Let’s say you have a log file, mylog.smcl and want to transform it to mylog.log, just run:

translate mylog.smcl mylog.log

Now a the file mylog.log should be stored in your working directory.

Johan Osterberg

Written by Johan Osterberg who lives and works in Gothenburg, Sweden as a developer specialized in e-commerce. Connect with me on Linkedin