1 LZCOMPRESS LZCOMPRESS is an interim package for the compression and decompression of files on the VAX (to make large files small), consisting of two programs : LZCOMP o The compressor LZDCMP o The decompressor LZCOMP implements the Lempel-Ziv file compression algorithm. (Files are compressed by LZCOMP are decompressed by LZDCMP.) It operates by finding common substrings and replaces them with a variable-size code. This is deterministic, and can be done with a single pass over the file. Thus, the decompression procedure needs no input table, but can track the way the table was built. Syntax The syntax of the LZCOMP command is `UNIX' rather then VAX/VMS, so instead of providing qualifiers, you provide options. This is because the program originates in the UNIX domain, and has not been converted to use VAX/VMS qualifiers. Options are preceeded by a `-' character. The syntax of the LZCOMP command is : LZCOMP [-options] [infile [outfile]] LZDCMP decompresses files compressed by LZCOMP. Its usual syntax is LZDCMP [-options] infile outfile LZCOMP Options Options are case insensitive (unlike UNIX). The following options are recognized : -B Specifies that the input file is binary -Mn Specifies maximum number of bits to be used in compression tables -V Enables debugging level -X Specifies compatibility mode Parameters The two parameters are the input and output filenames respectively. Redirection is supported, however, the output must be a disk/tape file. The file format is almost identical to the current UNIX implementation of compress (V5.0). Files written by UNIX compress should be readable by LZDCMP. Files written by LZCOMP in export (-X) format will be readable by UNIX compress (except that LZCOMP outputs two "clear" codes to mark EOF. LZDCMP LZDCMP decompresses files compressed by LZCOMP. Syntax LZDCMP [-options] [infile [outfile]] Parameters The two parameters are the input and output files. If you do not specify an output file, then the file is decompressed to the terminal. Which will result in a `nasty mess' if the original input was a binaary file! Unless you are using `VMS private mode', in this case the file is decompressed to the original name when an output file is not specified. Options Options are case insensitive (unlike UNIX). The following options are recognized : -B Specifies that the output file is binary -Mn Specifies number of bits to be used in LZ compression tables -V Enables debugging level -X3 Read a file compressed by an old UNIX compress.