ZIMFIX (Repair Facility)

Checks the integrity of EntitySet or relationship files and, optionally, repairs any damage found.

Syntax

ZIMFIX [object [dirname]] [O=filename] [-r]
ZIMFIXW [object [dirname]] [O=filename] [-r]

Note: To execute the ZIMFIX command in Zim for Windows at the operating system command line, you must enter the command name as zimfixw.exe. However, to execute the ZIMFIX command for text console processing and scripting, you must enter the command name as zimfix.exe (without the w).

Parameters

object

The name of an EntitySet, a relationship with fields, or an application directory. A role name can be used. If omitted, the software prompts for the information.

dirname

The name of the application directory in which object is located. If omitted, ZIMFIX searches for object in any application directory. If object corresponds to more than one database file, you must supply the dirname.

O=filename

An option that causes ZIMFIX to write progress and error messages into filename rather than displaying them on the terminal screen.

-r

An option ("repair mode") that instructs ZIMFIX to attempt to repair any damage it detects. If omitted, damage is reported, but no repairs are attempted.

Comments

ZIMFIX can check either files or directories for damage, or check for and repair damage. ZIMFIX first addresses the structural integrity of the database file, then addresses the correspondence between data and indices in the file.

If a system failure occurs, ZIMFIX should be used to determine if data has been lost or the integrity of the database corrupted. If so, ZIMFIX can repair the damage, if possible.

The messages output by ZIMFIX identify a damaged record by its record number. You should examine the content of all records repaired by ZIMFIX, as lost data cannot always be reconstructed.

To use the graphical version, activate the Administrative Utilities icon in the Zim program group. When the window containing the utilities opens, activate the File Repair icon and complete the dialog box appropriately.

Warning: ZIMFIX with the repair option (-R) repairs a database file in place. Before running ZIMFIX, you must run ZIMDD to ensure that the list of database files is current. Furthermore, you should make a backup copy of the damaged database before proceeding.

Example

zimfix customers -r

The preceding command causes ZIMFIX to check and repair the database file that corresponds to the Customers EntitySet.

find 25 customers
bottom
list

The ZIMFIX command in the above example reports that it repaired record number 25 in the EntitySet.

 

Related Topics