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
Using fixed effects with zero-truncated count modelsHello! I am attempting to estimate a model using a panel of data that includes between 1 and 13 year…
Why is My Stata for-loop Code Wrong?I just want to compute descriptive statistics of the categorical time-invariant variables in the att…
Lasso variables selectionDear all, I have an unbalanced panel, where I have a bunch of dummies, bunch of categorical variab…
Problem with omitting two categories using eventdd with a state-specific linear trend controlHello, everyone. I am using eventdd in Stata 17.0. I am trying to figure out how to keep event time …
gen whole lot random variables (and random order) efficientlyHi all, One of the statistical computations that I've been working on involves assigning 10,000 col…
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment