STATA problem with log files

STATA problem with log files

by Amber -
Number of replies: 4

I am using a MAC and have been having issues with the creation of log files on my computer.  Previously, I had no issues creating a log file with the appropriate name but now, when I am creating a log file, it will not let me open it and they are being named %D2Lab2_WheelerA.smcl%D3.  My computer will not let me rename the file.  Is there anything that I can do to fix this?

Thanks!

In reply to Amber

Re: STATA problem with log files

by Dawn Gano -

Another student had a similar problem in lab last week and we figured out that it was attributable to writing the command:

log using "your log.scml" instead of "your log.smcl" in the do file. 

Hope this helps!

In reply to Dawn Gano

Re: STATA problem with log files

by Amber -

I saw that post on the site and it's not the issue. I can troubleshoot with someone tomorrow if I cannot get it to work. I welcome other suggestions especially if anyone else has had this problem. 

Thanks! 

In reply to Amber

Re: STATA problem with log files

by Mark Pletcher -

Sorry, this is indeed a strange and troubling Stata bug.  I'll email Stata and see what I can get back from them.  

In the meantime, you might try 1) renaming the log file WITHOUT an UNDERSCORE, 2) Starting fresh with a new do file and also renaming the log file with the "log using" command in that do file.

In reply to Amber

Re: STATA problem with log files

by Mark Pletcher -

For those of you who didn't hear during class or have an ongoing problem with this log file issue (see previous thread), we got a response from Stata@stata.com about this:

"There are some unusual quotes that are triggering this issue. I suspect that either these quotes are being copied and pasted into Stata or that there is a language input modifier running that is outputting the non-ASCII quotes.

For opening the log it looks like the dialog was used and the quotes were added there. The dialog is smart and you don't need to include any quotes for the file name when you use the dialog system."

The problem was cutting and pasting from the word doc - the quotation character " gets messed up!  If you just delete it and then type " instead, it will work.