LZIP

Synopsis

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

Description

The LZIP compression uses the LZMA1 algorithm wrapped in the LZIP container format. The LZIP format is compatible with the lzip utility on UNIX systems and stores CRC32 integrity information alongside the compressed data.

The compression level is specified as an LZMA preset level, where lower preset values provide faster compression and higher preset values provide a better compression ratio. FAST, AUTO and BEST are aliases whose value depends on the word size of the platform:

The default level is AUTO when no level is specified. 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 (LEV0 to LEV9, LEVX) if the result has to be the same on every platform.

Decompression of concatenated LZIP 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 LZIP compression is used with write.record(), the file attributes cannot be stored in the LZIP 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 LZIP 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