Automatic Decompression

As an alternative to storing the data as compressed data on the remote node, you can decompress a file during Process execution. This functionality is available between z/OS and any other platform that supports ZLIB compression.

To perform automatic decompression, specify PRECOMP=YES in the SYSOPTS parameter in the FROM clause of the COPY statement. PRECOMP=YES indicates that the FROM data set is precompressed and instructs IBM® Connect:Direct® to decompress the file as part of the Process. If you do not code SYSOPTS or set PRECOMP to NO, the file is sent in compressed format and the receiver must run DGASACMP with MODE=DECOMP.

Note: If you are decompressing a file using DGASACMP, you cannot allocate VSAM files as DISP=(NEW,CATLG). You must predefine the VSAM output file.

The following sample Process, found as member DGAPMPPS in $CD.SDGAPROC, instructs IBM Connect:Direct to decompress a file that is compressed using DGASACMP.

Note: Refer to the $CD.SDGASAMP data set for more sample Processes.
CDCOMPPS PROCESS SNODE=CD.OS390
STEP1 COPY   FROM (DSN=$CD.FILE1.COMP     -
                DISP=(SHR)                -
                SYSOPTS='PRECOMP=YES'     -
                PNODE)                    -
             TO (DSN=$CD.FILE1.NEW        -
                DISP=(RPL)                -
                SNODE)