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
Markstat - pdf headers and syntax highlightingHi all, Coming from an R/python background, I have been enjoying playing with German Rodriguez exce…
How to transform language used in a dataset in stataI got another problem while running the following code: . unicode encoding set gb18030 . unicode tr…
Type I (sequential) regressionHello, I would like to run a Type I (sequential) regression model in Stata. However, I cannot find t…
Fixed Effects and LSDVBelow u can find my results from different regressions. Shouldn't my results using the fixed effects…
How to report 95% CI of random-intercept in mixed effects model?Hi All, I'm using STATA 15. My question: Would someone know how to report the 95% confidence inter…
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment