IBM Z and LinuxONE Software

Software

Software

In order to compete you have to be trusted. System software delivers high-performing system and database management, faster insights, secure cloud and agile DevOps, plus the reliability, flexibility and protection you expect from the mainframe.

 View Only
  • 1.  VSAM Data Compression CI Field

    Posted Tue September 03, 2024 06:51 PM

    Hi,

    I am trying to calculate the space parameter for a KSDS that will be using compression.

    In the DFSMS Using Datasets Manual, it states that the CI for a compressed file with non-spanned records will contain 3-byte field that will contain the compression information.

    Are the CIDF and RDF control information fields also present?

    Any additional assistance on how to calculate space for a VSAM dataset would be greatly appreciated.

    Thank you.



    ------------------------------
    Girish Sajja
    ------------------------------


  • 2.  RE: VSAM Data Compression CI Field

    Posted Wed September 04, 2024 12:46 PM

    Hello Girish,

    There is no formula I know of for calculating space on a VSAM compressed data set.  A compression token will be updated to the catalog after enough information is written to the data set to generate a token.  If the initial data loaded to the data set is representative of the data in the data set, a good token will be derived but that is about all we can say.  The book is trying to warn you of the overhead of compressing a record (and yes, they are compressed a the record level and not at the CI level) and each record will have that overhead.  So, of course, with smaller records this overhead would be more noticeable than on larger records. The VSAM Demystified has a more detailed description of compression and how it works and some warnings.  Of course, after you load the data set is is easy to see how well it compressed with a LISTCAT that shows the user data size vs. the compressed user data size.
    My apologies for not being able to answer your specific question.
    Helen Witter
    VSAM Development



    ------------------------------
    Helen Witter
    ------------------------------