16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

compress<br />

Options<br />

Localization<br />

Exit Values<br />

After attaining the bits limit, compress periodically checks the compression ratio. If<br />

it is increasing, compress continues to use the existing code dictionary. However, if<br />

the compression ratio decreases, compress discards the table of substrings and<br />

rebuilds it from scratch. This allows the algorithm to compensate for files, such as<br />

archives, where individual components have different information content profiles.<br />

–b bits<br />

Limits the maximum number of bits of compression to bits. The value bits<br />

can be an integer from 9 to 16. The default is 16.<br />

–c Writes the output to stdout. When you use this option, you can only specify<br />

one file on the command line.<br />

–D Allows an extra degree of compression to be done for files such as sorted<br />

dictionaries where subsequent lines normally have many characters in<br />

common with the preceding line.<br />

–d Decompresses argument files instead of compressing them. This works by<br />

overlaying the compress program with the uncompress program. For this<br />

to work, uncompress must be available somewhere in your search path<br />

(given by the PATH environment variable). Decompressing files this way is<br />

slower than calling uncompress directly.<br />

–f Forces compression even if the resulting file is larger or the output file<br />

already exists. When you do not specify this option, files which are larger<br />

after compression are not compressed. compress does not print an error<br />

message if this happens.<br />

–V Prints the version number of compress.<br />

–v Prints statistics giving the amount of compression achieved. Statistics give<br />

the name of each file compressed and the compression ratio, expressed as<br />

a percentage. If the file resulting from compression is larger than the<br />

original, the compression ratio is negative.<br />

compress uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to one of the following:<br />

v Missing number of bits after the –b option<br />

v Incorrect number of bits specified<br />

v Failed to execute uncompress<br />

v Unknown option<br />

v Dictionary option—same count of string exceeded<br />

v Output path or file name too long<br />

v Cannot stat file<br />

144 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!