Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: profile.do couldn't start


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: profile.do couldn't start
Date   Wed, 6 Apr 2011 00:26:54 +0100

Are spaces allowed in filenames on your system? I guess it's Unix or
Linux that's not playing rather than Stata.

Try this:

local date = subinstr("$S_DATE", " ", "", .)
log using "/users/`c(username)'/documents/statalogs/`date'.log/", append

Nick

On Wed, Apr 6, 2011 at 12:11 AM, Daniel Marcelino <dmsilva.br@gmail.com> wrote:

> Why Stata couldn't start my profile.do? I'm getting the following
> error for the program below.
>
>
> file /users/DM/documents/statalogs/ 5 Apr 2011.log/.log could not be opened
>
>
> *!Version 0.1 - Daniel
> set mem 500m
> set matsize 1000
> set logtype text
> log using "/users/`c(username)'/documents/statalogs/$S_DATE.log/", append
> display "DateTime: $ S_DATE $ S_TIME"
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index