_wait function


The _wait function delays or pauses processing for a specified number of seconds.

Syntax

x = _wait(<duration>)

The duration parameter contains the number of seconds for which you want processing to delay. Specify a value from 1 through 300 seconds. (300 seconds is 5 minutes.)

Values returned

The _wait function does not return any values.

Information
Example

The following is an example for the  _wait() function:

/*REXX                              _wait() function*/
timebefore = time()               /*time before wait*/
x = _wait( 2 )                    /* 2 second delay */
say "Time before wait was" timebefore "and it is now" time()


 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*

BMC AMI Utility Manager for Db2 13.1