Rational Developer for System z
Enterprise PL/I for z/OS, Version 3.8, Language Reference Manual

DELAY statement

The DELAY statement suspends the execution of the next statement in the application program for the specified period of time.

Read syntax diagramSkip visual syntax diagram>>-DELAY--(expression)--;--------------------------------------><
 
expression
Specifies an expression that is evaluated and converted to FIXED BINARY(31,0). Execution is suspended for the number of milliseconds specified.

The maximum wait time is 23 hours and 59 minutes.

For example:

  delay (20);

suspends execution for 20 milliseconds.

  delay (10**3);

suspends execution for one second.

  delay (10*10**3);

suspends execution for ten seconds.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)