DELAY

Purpose

Delays execution for a specified length of time.

Syntax

DELAY(expression)

Parameters

expression is evaluated and converted to a Fixed Binary(31) value. A negative value is equivalent to DELAY(0);

Description

The DELAY statement delays execution for a length of time equal to the number of milliseconds specified by expression, rounded to the nearest whole second.

Example

/* Both of the following statements suspend /* 
/* execution for one second. */

DELAY (10**3); 
DELAY (800);