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:
TSO. or
Batch, using the JCL shown in Example A-3
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 the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.