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

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:

When a program is running under CICS, the DELAY statement is implemented by using the EXEC CICS DELAY command. Currently the time interval for the EXEC CICS DELAY command has a minimum of one second. The milliseconds number specified in the PL/I DELAY statement is rounded down to the nearest second except when the value is less than 1 second, in which case it is set to 1.

For example:


Terms of use | Feedback

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