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
Pseudo out-of-sample forecast using loopsHello, I have tried running a code given to me to predict a pseudo out-of-sample forecast using a lo…
Splitting data within one variableHello! I have a variable with data entry as follows for each observation: XXX-XXXXX-X-X. Is there a…
How to generate a dummy variable in the dataset as attached in this post?I want to generate a dummy variable. When the name for the position of "GS" is the same for the posi…
error for displaying a large numberHello, To merge, I needed to make a specific identifier for each row. As you can see below, for eac…
stripplot: Getting rid of "graphs by ___ " note in lower leftI'm using the latest version stripplot (ran ssc install stripplot today) with both the over and by o…
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment