cobol2.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
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.
                                    -♦-