COMPRESS

Synopsis

HELP:   Compression procedure [NONE]
TYPE:   OVERLAY
SYNTAX: COMPRESS/CMP.{GZIP()/BZIP2()/XZ()/ZSTD()}

Description

With the overlay 'compress', you can choose which kind of compression method is used for the data. Depending on the compression method different parameters can be provided to define the behavior in more detail.

If no compression method is selected, no data compression is performed.

Example: Read a host data set and write it as GZIP file for Windows

 flcl conv
   read.record(file='~.mydata.fba' suppad ccsid=ibm1141)
   write.text(file='~/mydata.txt'
              ccsid=cp1252, method=windows
              comp.gzip())

The example uses SUPPAD to eliminate trailing whitespace from the MVS dataset. The ASA control character is detached by default, the character set is changed from IBM1141 to CP1252, 0x0D0A is used as delimiter for each record and a GZIP file is written to USS.

If you want to read such a GZIP text file, use 'read.text()' and the decompression is done transparently and automatically.

See below for the different compression options.