wait()

The system function SysLib.wait suspends execution for the specified number of seconds.

  SysLib.wait(timeInSeconds BIN(9,2) in)
timeInSeconds
The time can be any numeric item or literal. Fractions of a second down to hundredths of seconds are honored if the number is not an integer.

You can use SysLib.wait when two asynchronously running programs need to communicate through a record in a shared file or database. One program might need to suspend processing until the other program updates the information in the shared record.

Example

 SysLib.wait(15); // waits for 15 seconds

Related reference
EGL library SysLib

Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.