I would like to pause a stata command for 24 hours due to some externally imposed restriction on coding data (FYI opencagegeo which limits the amount of geocoded observations per day).
I thererfore tried to use the sleep command to re-start the command automatically after the 24 hours:
corresponding to the number of milliseconds in a day. However, the command did not pause at all. It does work for a lower value instead, like 10000 (i.e. 10 seconds). For instance
does not work and displays without pausing. But
works. Hence, I am guessing there is an upper limit to the number of milliseconds but this is not indicated in the help. Does anyone know?
Regards,
Mario
I thererfore tried to use the sleep command to re-start the command automatically after the 24 hours:
Code:
sleep 86400000
Code:
forvalues i = 1/2 { di `i' sleep 86400000 }
Code:
forvalues i = 1/2 { di `i' sleep 10000 }
Regards,
Mario
Comment