inteleserve
IS-IT--Management
The .prg file below is running over and over again on my cpu...(for hours)... anyways sometimes after lets say 4 or 5 hours the program halts and I get an error message at
select * from /u/server/dstore/data/mainapps.dbf where recordid = datetime into table /u/server/dstore/data/tempapps.dbf
The error message says "FILE IN USE"
How can I word this so it says on error(file in use, ) wait 1 second and try again......
******************************************
set talk off
set safety off
close all databases
use /u/server/dstore/data/mainapps.dbf
store chrtran (DTOC(date()) +time(), ':/','') to datetime
replace all recordid with datetime for recordid=" "
close all
wait "" timeout 1
select * from /u/server/dstore/data/mainapps.dbf where recordid = datetime into table /u/server/dstore/data/tempapps.dbf
close all
use /u/server/dstore/data/sendapps.dbf
append from /u/server/dstore/data/tempapps.dbf
close all
delete file /u/server/dstore/data/tempapps.dbf
*****************************************************
select * from /u/server/dstore/data/mainapps.dbf where recordid = datetime into table /u/server/dstore/data/tempapps.dbf
The error message says "FILE IN USE"
How can I word this so it says on error(file in use, ) wait 1 second and try again......
******************************************
set talk off
set safety off
close all databases
use /u/server/dstore/data/mainapps.dbf
store chrtran (DTOC(date()) +time(), ':/','') to datetime
replace all recordid with datetime for recordid=" "
close all
wait "" timeout 1
select * from /u/server/dstore/data/mainapps.dbf where recordid = datetime into table /u/server/dstore/data/tempapps.dbf
close all
use /u/server/dstore/data/sendapps.dbf
append from /u/server/dstore/data/tempapps.dbf
close all
delete file /u/server/dstore/data/tempapps.dbf
*****************************************************