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.