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: