BatchWait
Use this command in conjunction with data submissions to check if the submission is fully processed before proceeding to the next command in the Procedure document. This command can also be used in conjunction with the functions JournalEntryPost() and JournalEntryUnpost().
Note: BatchWait must be turned on prior to any submissions, or the JournalEntryPost() and JournalEntryUnpost() functions.
The BATCHWAIT command polls the server every specified number of seconds to check the status of a batch. Once the batch has been completed, the next command is executed.
where:
- Setting can be one of the following:
- ON—Use this value if you want to wait for the batch to complete.
- OFF—Use this value if you want to exit without waiting for the batch to complete.
The default value is OFF.
- WaitTime is optional, and indicates the period of time to wait (in seconds) between polling the server for batch status. The default value is 60 seconds.
See also