REXX code to list compression ratio

Compression is useful when the compression rate is high, to compensate for the CPU used to perform the compress. The compression rate depends on the data.

You can use the REXX in Example A-4 to list the compress ratio for:

  • All data sets (VSAM KSDS or non-VSAM) from a catalog.

  • An specific data set

You can execute the REXX via:

Example A-3. Sample JCL for running REXX in batch
//REXX      EXEC  PGM=IRXJCL,
//  PARM='REXX_NAME +UCAT.VSBOX01'
//SYSTSPRT  DD  SYSOUT=*
//SYSEXEC   DD DISP=SHR,DSN=PDS_REXX
//SYSTSIN   DD DUMMY
Example A-4.
 /* REXX */ /*TRACE R */ /********************************************************************/ /* FUNCTION: */ /* DISPLAY THE COMPRESSION ...

Get VSAM Demystified now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.