XZ

Synopsis

HELP:   XZ (LZMA) data compression technique
TYPE:   OBJECT
SYNTAX: XZ(LEVEL=num/FAST/LEV0/LEV1/LEV2/LEV3/LEV4/LEV5/LEV6/LEV7/LEV8/LEV9/LEVX/BEST/AUTO,SKIP)

Description

The XZ compression conforms to the XZ-compression tool on UNIX-systems. The compression level is an liblzma preset and can be set to values from 0 to 9, plus LEVX for preset 9 with LZMA_PRESET_EXTREME. Preset 0 is the cheapest setting, not a copy - liblzma has no store mode.

FAST, AUTO and BEST are aliases whose value depends on the word size of the platform: 0, 3 and 6 on 32-bit platforms (including z/OS AMODE 31), and 1, 6 and LEVX on 64-bit platforms. AUTO is used when no level is specified, so the default is preset 3 on 32 bit and preset 6 on 64 bit. The cap on 32 bit exists because the dictionary has to be provided again when reading: LEVX needs 64 MiB for that. State the preset numerically if the result has to be the same on every platform.

Decompression of concatenated XZ files is also possible. All concatenated files are decompressed into one file. It is also possible to decompress one specific member of this concatenation by specifying the member index of the file to be decompressed:

 filename/:memberindex

If XZ compression is used with write.record(), the file attributes cannot be stored in the XZ file. The record attributes can be added in front of the record (PRNCTR=RETAIN). By default, a 4 byte length field in little endian is written in front of the data. Such an XZ file can be used on record-oriented platforms to recreate the original datasets as PS-VB. You may want to use a ZIP archive or ARMOR encoding to store the file attributes (DCB) to recreate the correct record format and length.

Arguments