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 Argument

<duration>

an integer representing the number of milliseconds to pause

Details

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

Example

sleep(000)
Results: The job sleeps for 5 seconds