I have multiple instances of Stata accessing the same excel file to record some information. Every once in a while they try to access the excel file at the exactly the same time and I get following error:
file C:/…/MaxMin.xlsx could not be loaded
r(603);
What I need is to check first if the file is being accessed by another instance and if it is sleep 5-10 seconds and retry. If not, proceed to write to the file.
However, I have no experience with file commands I usually see in program files. Can anyone provide some guidance?
Related Posts with Commands for sleep and retry if a file being accessed at the moment
Mixed models repeated measuresHi, I'm trying to find the best model for answering a repeated measures problem. The research quest…
Identify case in GraphEditor ??I'm looking at the trends of my data and want to identify specific cases from the graph that are out…
Hausman-test interpretation for RE vs FEHello, I have a queston on how to interpret a Hausman-test. Dependent variable (y) is suffering fro…
Graphs Unconditional quantile regressionHello, I would like to know if you could help me with the following: I´m running the following unco…
How to compute std error for eyex marginReally, really appreciate the article "When I use the eyex option of margins, what is it actually co…
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment