HELP: Read XZ (LZMA) compressed data TYPE: OBJECT SYNTAX: LXZ(MEMBER='str',BUFSIZ=num,SKPORG)
The LZMA/XZ converter can be used to compress or decompress data streams compatible with the XZ utility on UNIX systems.
The result of a compression is a binary block. The result of a decompression can be text, XML, a base encoding or binary data. Please use delimiters, length fields or fixed length data if records must be exchanged.
There is no header to store meta information about the data, so all metadata is lost.
The compression level is an liblzma preset. If no level is defined and the data is marked as being without redundancy, preset 0 is used - this is the cheapest setting, not a copy: liblzma has no store mode, and preset 0 still compresses (measured on the FLCL manual: 773255 bytes to 199692 bytes). In all other cases the default is the AUTO preset.
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 the EXTREME preset (LEVX, preset 9 with LZMA_PRESET_EXTREME) on 64-bit platforms. The cap on 32 bit exists because the dictionary has to be provided again when READING: the EXTREME preset needs 64 MiB. Whoever needs the same result on every platform states the preset numerically (LEV0 to LEV9, LEVX).
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 filename/#memberindex test.xz/#3 test.xz/:2
XZ data streams are written to ZIP archives as compression mode 95 (XZ). The XZ header and trailer are replaced by a ZIP local file header. If an XZ file (compression mode 95) is read from a ZIP archive, it is converted to an XZ data stream which can be decompressed with this component. Compression mode 14 is LZMA and belongs to the LZIP/LZPP component (CNV.LZP()).
STRING: MEMBER='str' - Index of the member in the XZ file to readNUMBER: BUFSIZ=num - Initial buffer size for preallocation [65536]SWITCH: SKPORG - Skip decompression if original was copied [FALSE]