Job Control and the SLEEP Statement
Posted: Wed Aug 10, 2005 9:18 am
If I create a dummy job and put in SLEEP 30 into the job control it works like it should and pauses for 30 seconds before continuing.
I have now created a job with more complex processing in the job control, it is actually used to start n-parallel runs of several hundred jobs (meaning you specify how many concurrent processes to run and when one finishes the job starts the next one). This job works as it should but I am having trouble slowing it down.
Part of the code is:
When I run this job it does not SLEEP; the two DSLogInfo() timestamps are in the same second! I have changed this line to SLEEP 30 (using a constant) and NAP 30000 to no avail.
Does anyone have an idea of what could be happening?
I have now created a job with more complex processing in the job control, it is actually used to start n-parallel runs of several hundred jobs (meaning you specify how many concurrent processes to run and when one finishes the job starts the next one). This job works as it should but I am having trouble slowing it down.
Part of the code is:
Code: Select all
CALL DSLogInfo('Sleeping ':SleepTime:' Seconds.',ProgramName)
SLEEP SleepTime
CALL DSLogInfo('I just slept ':SleepTime:' Seconds.',ProgramName)When I run this job it does not SLEEP; the two DSLogInfo() timestamps are in the same second! I have changed this line to SLEEP 30 (using a constant) and NAP 30000 to no avail.
Does anyone have an idea of what could be happening?