Test check data log

Command group Flag affected Reversible Execute on client Platform(s)
Data management YES NO NO All

Syntax

Test check data log ([Perform repairs])

Options

Perform repairs If selected, repairs to the data file are automatically carried out

Description

This command tests if there are any reports of nonrepaired damage in the check data log. If the Perform repairs option is not specified, the flag is set if there are any reports of non-repaired damage.

If the Perform repairs option is specified, an attempt is made to repair the damage. There is no need for the check data log to be open. Furthermore, Omnis automatically tests that only one user is logged onto the data file (if not, the command fails with flag false), and further users are prevented from logging onto the data until the command completes.

If a working message with a count is open while the command is executing, the count will be incremented at regular intervals. The command may take a long time to execute, and it is not possible to cancel execution even if a working message with cancel box is open.

The command sets the flag if it completes the data repair successfully and clears the flag otherwise. The command is not reversible.

Example

Quick check 
Test check data log
If flag true
  OK message {Problems found in data file}
  Open check data log
End If