Hello-- I am wondering if anyone knows of alternatives to the sleep command. I am running some complicated code--loops through each US state, calls in multiple other .do and .ado files and takes 12+ hours to run. Depending on server traffic, it seems like Stata sometimes can't catch up with itself and when I'm trying to save out a file I get the ". . . read -only; cannot be modified or erased" error. Our fix has been to add sleep commands after save commands to give Stata a few extra seconds, but we were hoping for a more efficient fix, something that does not eat up as much time unnecessarily. For those who are familiar, something more like the trylock command in SAS. Any ideas?
-
Login or Register
- Log in with
Comment