Operating Condition
Syntax: SET WAIT value
Range: 0 to 16383 seconds
Default: 4
Mode: Multi-user
SET WAIT sets the minimum number of seconds to retry the last requested resource (a table or database) before halting execution. Rather than aborting execution, SET WAIT allows you to set a length of time for R:BASE to keep trying to access a resource. A message is displayed showing the approximate percentage of wait time remaining.
If you do not run a SET WAIT command, R:BASE automatically retries the locked resource for approximately four seconds before issuing a retry message.
For commands that wait for resources, the precise period of the wait is at least as long as the time specified. On some computers, processing requirements may extend the length of the wait to longer than one second for each second designated.
When you enter a command from the R> prompt and the waiting period expires, R:BASE displays a message prompting you to retry or ignore the command. When the command runs as part of a command file, however, and the waiting period expires, R:BASE ignores the command and goes on to the next command.
The following command tells R:BASE to retry the last requested resource for approximately 20 seconds.
You can also adjust the interval in which R:BASE tries the command during the SET WAIT period.
For more information, see INTERVAL.