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
Bayes Stochastic Frontier AnalysisDear all, Does anyone have the Stata command to do Bayes Stochastic Frontier Analysis(SFA)?In Stata …
Help with graph, poisson regressionHello, I have ran a poisson regression for a paper that I have to write. My goal was to find the pr…
use local in foreach commandDear All, I ran the following command Code: local in1 "inrange(year,2011,2012)" local in2 "inrange(…
Ceo transition from male to femaleDear community, I have an unbalance panel data where I want to create the following variables with …
Event Study Using earnings announcement dateI have a data that looks as follow . Post1 = 0 is collapsed mean of date -45 to -1 for the event dat…
Subscribe to:
Post Comments (Atom)
0 Response to Commands for sleep and retry if a file being accessed at the moment
Post a Comment