Product Documentation

c-treeACE V10.3 Update Guide

Previous Topic

Next Topic

Compressing/un-compressing existing data

It is now possible to enable/disable compression on existing data files programmatically by using the CMPIFIL() function or through the use of the ctcmpcif utility.

To enable or disable compression when calling CMPIFIL(), set the chgcompressIFILoption bit in the tfilno member of the IFIL structure whose address you pass to CMPIFIL(). When this bit is set, CMPIFIL() switches the compression state of the file: compressed files become un-compressed, un-compressed files become compressed.

To enable or disable compression when using the ctcmpcif utility, command-line options are provided:

  • -compress - Create the compacted data file with compression
  • -nocompress - Create the compacted data file without compression

TOCIndex