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
How to view the SE of autocorrelation in xtregarI'm estimating a model using xtregar, fe. The results include an estimate of rho (rho_ar), but I can…
Danish MP's political responsiveness - help with statistical significanceHello everyone Me and a fellow student are currently working on an assignment investigating politic…
sample size for test accuracyIs there a preferred method for estimating the required sample size for testing the accuracy of a go…
Problem with displaced coefficients using -coefplot-Dear Statalisters, I want to plot regression coefficients using the Stata journal command -coefplot-…
Repeated measures, do GEE, mixed models or logistic regressionHello, I know there are many postings on this topic but I am still a bit confused. I have cohort …
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment