Coding the TIME operand

To simulate a terminal operator waiting a specific amount of time for a reply to a message, code TIME=integer or TIME=cntr on the WAIT message generation statement. The value you code on the TIME operand specifies the amount of time, in seconds, that WSim interrupts message generation for a device.

The time specified on the TIME operand is the maximum amount of time that WSim interrupts message generation. If a message is received before the specified time elapses, WSim continues message generation without waiting for the time to elapse. When you code certain values on the TIME operand,WSim calculates the amount of time by multiplying a number by the active user time interval (UTI). For more information about the UTI, see Understanding intermessage delays.

You can code one of the following values for the TIME operand:
integer Specifies a fixed number of seconds (this is never multiplied by the UTI) to be the maximum amount of time WSim interrupts message generation. integer is an integer 0 - 21474836.
A(integer) Specifies that WSim selects a value from the range of zero to two times integer.WSim then multiplies the result by the active UTI value to determine the intermessage delay. integer is an integer 0 - 1073741823.
F(integer) Specifies that WSim fixes the amount of time at the value of integer multiplied by the active user time interval. integer is an integer from 0 to 2147483647. If you specify F0, WSim processes the statement as if you had not coded the TIME operand.
R(integer) Specifies that WSim selects a value randomly from the range defined on an RN statement and multiplies the value by the active user time interval. integer specifies the number of the RN statement and is an integer 0 - 255.
R(integer1,integer2) Specifies that WSim selects a value randomly from the range specified by integer1 and integer2 and multiplies the value by the active UTI value. integer1 is an integer from 0 to 2147483646 and integer2 is an integer from 1 to 2147483647 or counter specifications whose values are within this range. integer1 must be less than integer2.
T(integer) Specifies that WSim selects a value randomly from the rate table specified by a RATE statement and multiplies the value by the active UTI value. integer specifies the name of the RATE statement and is an integer 0 - 255. For more information about using the RATE statement, see Coding the DELAY operand.
cntr Specifies that WSim uses the value of a sequence or index counter as the amount of time. The counter's value must be within the range 0 to 2147483647. For any counter value, the maximum amount of time to wait is the value multiplied by the UTI value.
Note: You must code the parentheses for R(integer1,integer2) when you code the TIME operand. All other parentheses are optional.
When you code TIME=cntr, you can specify one of the following sequence or index counters for cntr:
NSEQ References a network sequence counter.
LSEQ References a line sequence counter.
TSEQ References a terminal sequence counter.
DSEQ References a device sequence counter.
NCn References network index counter n.
LCn References line index counter n.
TCn References terminal index counter n.
DCn References device index counter n.
The following example illustrates coding for TIME=integer.
WAIT2  WAIT  TIME=300       Turns on the WAIT indicator and interrupts
*                           processing for a maximum of 300 seconds
*                           or 5 minutes.