Set timeout interval: Passes
the timeout interval, in seconds, to be applied to input from the specified
file. The maximum value allowed is 655.35 seconds. If input is requested
from a file but is not received in this interval, the FREAD request terminates prematurely with CCL. The interval
is specified in seconds and returned in item. If this interval is zero, any previously established
interval is cancelled, and no timeout occurs. A timeout
value should be used for programs reading from an unattended device
to prevent "hangs". Timeouts can be used to terminate binary reads,
but only as a safeguard to prevent a program from waiting too long
for a read to complete. Only valid for terminal and
message files. Only affects the next read if the addressed file
is being read from the terminal; it must be reissued for each read.
If this code is applied to a message file, item specifies the length of time that a process waits
when reading from an empty file or writing to a full one and the
timeout remains enabled until it is explicitly cancelled. Denotes
a halfword in the stack that contains the time-out interval, in seconds,
to be applied to input from the terminal. During block
mode reads, the timer halts when a DC2 character is received. The
block mode read timer is activated by the system software; these
values are not user changeable. Not applicable to KSAM
files. |