wait()

The sysLib.wait() system function suspends the current process for a specified amount of time.

Use sysLib.wait() when two asynchronously running programs need to communicate through a record in a shared file or database. For example, you can use the function to suspend processing on one program until another program updates the information in the shared record.

Syntax

  sysLib.wait(time BIN(9,2) in)
time
Input can be any variable that is assignment compatible with BIN(9,2). EGL accepts fractions of a second down to hundredths.

Example

The following example creates a 15-second pause.

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

Compatibility

Table 1. Compatibility considerations for wait()
Platform Issue
IMS/VS sysLib.wait() is ignored.
JavaScript generation sysLib.wait() is ignored.

Feedback