cobol2.hlp (Table of Contents; Topic list)
KEYCOMPRESS Details (↑ Format of Your Data Files)
 Key Summary                             Up Contents Index Back
────────────────────────────────────────────────────────────────────────────
 
     The possible values of integer are:
 
      1  Suppress repetitions of duplicate keys.
      2  Suppress leading characters that are the same as in the
         previous key.
      4  Suppress trailing spaces.
 
     You can specify any combination of these numbers by adding these
     values together.
 
     You need specify key compression only when creating the file.
     Subsequently, the key compression will be detected when the file
     is opened.
 
     To get key compression on an individual file, use $SET statements
     in your source so that this directive is in effect only for the
     part of the source containing the relevant KEY clause in the
     file's SELECT statement.
                                    -♦-