PAUSE


The PAUSE statement allows processing to be suspended until an external event triggered by a WAKE statement from another process or a timeout occurs.

 

COMMAND SYNTAX

PAUSE {expression}

 

SYNTAX ELEMENTS

expression may evaluate to a timeout value, which is the maximum number of seconds to suspend the process. If expression is omitted then the PAUSE statement will cause the process to suspend until woken by the WAKE statement.

If a timeout value is specified and the suspended process is not woken by a WAKE statement then the process will continue once the timeout period has expired.

If a WAKE statement is executed for the process before the process executes the PAUSE statement then the PAUSE will be ignored and processing will continue until a subsequent PAUSE statement.


jBC