SLEEP Function

Pauses execution for the specified number of milliseconds. It allows the job to be interrupted or canceled without problems.

Category: Execution
Returned data type: Integer
Note: The returned value is a Boolean value where 1= success and 0 = error.

Syntax

sleep(duration)

Required Arguments

<duration>

an integer representing the number of seconds to pause

Details

The sleep function causes the job to pause for the specified number of milliseconds.

Example

sleep(5000)

Results: The job sleeps for 5 seconds