Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

CompactIFileXtd

Compresses a data file, then rebuilds to regenerate the indexes.

Short Name

CMPIFILX()

Type

Extended ISAM function

Declaration

COUNT CompactIFileXtd(pIFIL ifilptr, cpTEXT dataextn,

cpTEXT indxextn, LONG permmask,

cpTEXT groupid, cpTEXT fileword)

Description

CompactIFileXtd() is the extended version of CompactIFile() permitting the use of the FairCom Server security system.

In addition, it can be used to change the file name extension from the defaults used by CompactIFile(). The period is not assumed in the extensions. For example, to name the data file fname.dta, set dataextn to .dta, not dta.

Please read the description for CompactIFile() and RebuildIFileXtd() for additional information.

Return

A zero (0) return indicates successful operation. A non-zero return indicates an error, check isam_err. The error returns are similar OpenCtFile() and RebuildIFileXtd(). See FairCom DB Error Codes for additional error explanations.

Limitations

Same as CompactIFile().

See also

TOCIndex