Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Command Index > S > SET

WAIT

Scroll Prev Top Next More

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.

 

If you do not run a SET WAIT command, R:BASE automatically retries the locked resource for approximately four seconds.

 

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 informing the user that the resource is unavailable. When the command runs as part of a command file, however, and the waiting period expires, R:BASE displays the unavailable resource message, 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.

 

SET WAIT 20

 

You can also adjust the interval in which R:BASE tries the command during the SET WAIT period.

 

For more information, see INTERVAL.