You can use the COMPRESS statement to perform a compress operation by providing the following information:
For example, to compress the file FILE1 using a work file called TEMP1, specify a COMPRESS statement as follows:
// EXEC PGM=LDMAMS //SSN$xxxx DD DUMMY //SYSPRINT DD SYSOUT=A //SYSIN DD * COMPRESS INFILE(FILE1) WORKFILE(TEMP1) //TEMP1 DD DSN=LSERV.TEMP
Note: A file can be compressed only if it was defined with the REUSE option of the DEFINE CLUSTER control statement of the IDCAMS utility.
| Copyright © 2012 CA. All rights reserved. | Tell Technical Publications how we can improve this information |