Wait: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
The '''WAIT=''' parameter and [[TIMEOUT]] [[error trap]] can be used with [[INPUT]]/[[RINPUT]]/[[LInput]] statements to force releasing of records. This feature is useful for multi-user situations. | The '''WAIT=''' parameter and [[TIMEOUT]] [[error trap]] can be used with [[INPUT]]/[[RINPUT]]/[[LInput]] statements to force releasing of records. This feature is useful for multi-user situations. | ||
WAIT is located in statement syntax within the quotation marks and after the name=[[file ref]], and preceded by a comma. | |||
*WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition. | *WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition. | ||
*NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction. | *NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction. |
Revision as of 15:36, 14 July 2015
WAIT=<seconds>
The WAIT= parameter and TIMEOUT error trap can be used with INPUT/RINPUT/LInput statements to force releasing of records. This feature is useful for multi-user situations.
WAIT is located in statement syntax within the quotation marks and after the name=file ref, and preceded by a comma.
- WAIT= specifies the number of seconds the system should wait for operator input before responding with a TIMEOUT error condition.
- NOTE that WAIT=0 instructs the system to wait for zero seconds, not to ignore the WAIT instruction.
- Also, -1 is a special WAIT value that instructs the system to wait forever, if necessary.
Every time the operator presses a key, the clock is reset for WAIT seconds.
Used in:
- LInput
- Input Fields
- Rinput Fields
- Open Statements