Previous Topic: COMMTEST Statement

Next Topic: END Statement

COMPRESS Statement

The COMPRESS statement compresses a VSAM file that CA‑L‑Serv is managing. The LDMAMS utility uses this statement during a compression process.

Syntax

COMPRESS INFILE(ddname) WORKFILE(ddname)

Operand

Explanation

INFILE

Identifies the VSAM file that you are compressing. This DD name must match the DD name on the ADDFILE command.

WORKFILE

Identifies the sequential file that serves as a temporary work file for the compression process. The LDMAMS JCL must include a DD statement for this file.

Note: You can specify this statement as input for an LDMAMS job. A file can be compressed only if it was defined with the REUSE option of the DEFINE CLUSTER control statement using the IDCAMS utility.

Example

To compress file FILE1, using TEMPFILE as a work file, specify this statement as input to the LDMAMS job:

COMPRESS INFILE(FILE1) WORKFILE(TEMPFILE)