Key Loop Expansion Tokens

MapPrep

Key Loop Expansion Tokens

 

Key loop expansion tokens are used to insert information about the current key being processed within the context of a key loop into the output stream. Key loop tokens can only be used inside a key loop.

 

Key Loop Token

Description

<KEY_CHANGES>

 

Inserts text indicating whether the key allows changes to existing key entries.

<KEY_DENSITY>

 

Inserts the key packing density for the current key.

<KEY_DESCRIPTION>

 

Inserts the description of the key. Be aware that key descriptions are optional in Repository, so this token may expand to nothing!

<KEY_DUPLICATES>

 

Inserts text indicating whether the key allows duplicate values.

<KEY_DUPLICATES_AT>

 

Inserts text indicating where duplicate values are inserted.

<KEY_LENGTH>

 

Inserts the length of the key. The length of the key is the sum of the length of all key segments.

<KEY_NAME>

 

Inserts the name of the key. Note that this is the name of the key in the repository, and may or may not correspond to the name of the key in the underlying ISAM file, if a key name exists.

<KEY_NULLTYPE>

 

Inserts the keys null key type.  The token should only be used within a <IF NULLKEY> expression.

<KEY_NULLVALUE>

 

Inserts the keys null key value.  The token should only be used within an <IF NULLKEY> expression.

<KEY_NUMBER>

 

Inserts the number of the key, primary key is key 0, first alternate key is key 1, and so on.

<KEY_ORDER>

 

Inserts the ordering sequence of the key, ascending or descending.

<KEY_SEGMENTS>

 

Inserts the number of key segments defined.

<KEY_UNIQUE>

 

If the key does not allow duplicates then inserts the text UNIQUE, otherwise nothing is inserted.

 

 


Copyright © 2018  Synergex International, Inc.