Statalist


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

Re: st: File cannot be save error message. Problem with xml_tab and log using.


From   "Michael I. Lichter" <mlichter@buffalo.edu>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: File cannot be save error message. Problem with xml_tab and log using.
Date   Tue, 23 Jun 2009 12:28:09 -0400

In the thread he refers to, Eric explains that likely causes are:

"(1) your computer/OS is capriciously setting your file with a read-only attribute (as Nick points out, this can happen with Windows XP) or (2) when Stata tells the OS to write the file to myfile_happ.txt, the OS is moving too slowly, Stata moves on to the next loop and tries to write again, but the file is read- only because it is still being written to by the OS (or BOTH (1) and (2) are happening)."

I had a similar experience a few weeks ago, and the problem was akin to #2. I use Windows Live Sync (WLS), which maintains file synchronization on multiple computers. In one instance, I was getting errors because Stata was writing a file and then trying to overwrite the file faster than WLS could lock, copy, and unlock it. I wonder if Amadou is having problems for similar reasons (some sort of file sharing program).

Michael

Eric A. Booth wrote:
I've had success with setting the file/folder permissions using the command line.
 Look at this statalist thread for details:

http://www.stata.com/statalist/archive/2009-05/msg00394.html


Eric

__
Eric A. Booth
Public Policy Research Institute
Texas A&M University
ebooth@ppri.tamu.edu
Office: +979.845.6754


On Jun 23, 2009, at 1:36 AM, Amadou DIALLO wrote:

Hi,

Many thanks for your answer. I have put a cd "" on the top of the do
file before running the code, so basically, I shouldn't have the
problem. The folder I am saving is a sub directory in "My Documents",
that is "My Documents/Data".

But when I right-clik on the Data folder to check its properties, I
see that folder is read-only. I remove the read-only button check and
re-run the stata code, but when I check again later the folder turns
back to "read-only". Very frustrating !!!
I am the owner of the laptop. I have administrator rights, so I do not
know what to do else.

Thanks for your time.

Amadou.


2009/6/22, Zurab Sajaia <zsajaia@hotmail.com>:

Hi Amadou,

If the folder where you're trying to save files (any files, xml_tab output, log, datasets etc) is write protected then of course that can explain error 603, Stata needs to be able to save on that location. are you specifiying
the full path in the save() or -using- options? if you just write
save(results.xml) that means that you want to save in the current working folder, which most of the cases is Stata folder (c:\program files\stata10\
or something like that) and most probably protected by your system
administrator.

Try puting a path, which you are sure you have access to, like your "my
documents" folder and see if you get the same problem.

Without having more info about your setup I can't think of any other
suggestion.
Best,
Zurab


Date: Mon, 22 Jun 2009 19:08:56 +0300
Subject: st: File cannot be save error message. Problem with xml_tab and
log using.
From: stata.diallo@gmail.com
To: statalist@hsphsun2.harvard.edu

Hi,

I am using two computers with no usb or alike so I cannot show what is
going on.

I am trying to output tabulations and regression results in a single
excel file. I am using xml_tab. Each set of results is saved in a
separate sheet. The first option of xml_tab is "replace" followed by
a set of "append" commands. However, After a few runs, stata issues an
error message:

file can not be saved at this location
r(603);

I try to unprotect the folder (removed the "read-only" check) but it
still coming back to read only. Is that the problem? I have the same
problem when I try to save in a log file.

Best regards.

Amadou.

---

Amadou B. DIALLO, PHD
Development Economist
Director, Center for Research and Training on Adult Education
Mayotte, FRANCE
www.aprosasoma.org
+262639693250
*
* 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/
*
*   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/



--
---

Amadou B. DIALLO, PHD
Development Economist
Director, Center for Research and Training on Adult Education
Mayotte, FRANCE
www.aprosasoma.org
+262639693250
*
*   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/

*
*   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/

--
Michael I. Lichter, Ph.D. <mlichter@buffalo.edu>
Research Assistant Professor & NRSA Fellow
UB Department of Family Medicine / Primary Care Research Institute
UB Clinical Center, 462 Grider Street, Buffalo, NY 14215
Office: CC 126 / Phone: 716-898-4751 / FAX: 716-898-3536

*
*   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   |   What's new   |   Site index