WAIT
command | Parameters |
---|---|
WAIT | n |
NAME | (name) |
The following table describes the parameters:
Parameter | Function | Notes |
---|---|---|
Interval | Number of seconds to suspend execution | Numeric value in the range 1-9999 |
NAME | Used with the NAME parameter in the IMFEXEC POST command statement | Can be 1-32 alphanumeric characters long This parameter allows you to stop execution of the EXEC until either the wait time expires or until the NAME parameter in an IMFEXEC POST command is posted. See POST for more information. |
Condition codes are listed in the following table:
Value | Description |
---|---|
0 | Command was executed successfully. (If WAIT on NAME and INTERVAL did not expire.) |
8 | Attempted WAIT on NAME timed out. |
16 | Syntax error occurred. |
Example
This example pauses the EXEC for 15 seconds or until the name TOKEN is posted by the IMFEXEC POST command statement in another EXEC. The EXEC processing thread remains in use.
"IMFEXEC WAIT 15 NAME(TOKEN)"
CLIST example: