Admin Production rocket
Current Publication

KEYCOMPRESS

NetExpress Bookshelf Help V5.1 WrapPack 1
Rocket® Net Express™ (formerly a product of Micro Focus or formerly a product of Open Text) documentation, created before Rocket Software acquired certain products from OpenText, may include outdated references to "Micro Focus" or "OpenText", both of which are trademarks of OpenText or its affiliates. Rocket Software is not affiliated with Micro Focus or OpenText and has since rebranded these products as Rocket® products. You may also encounter outdated links in this documentation. If you do, please contact Rocket Support (support@rocketsoftware.com) for assistance.

KEYCOMPRESS

Specifies the type of key compression to be done on indexed files.

Syntax:
>>-.---.-.-----KEYCOMPRESS--"integer"-.----><
   +-/-+ +-NO--KEYCOMPRESS------------+
Parameters:
integer Must be between 0 and 7, combining the following values
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.

Properties:
Default: NOKEYCOMPRESS
Phase: Syntax check
$SET: Any
Comments:

KEYCOMPRESS"0" is equivalent to NOKEYCOMPRESS.

You need specify key compression only when creating the file. Subsequently, key compression is detected when the file is opened.

To get key compression on an individual file, use $SET statements in your source code 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.

See Also:

Related Topics