Relation Loop Expansion Tokens
Relation loop expansion tokens are used to insert information about the current relation being processed within the context of a relation loop into the output stream. Relation loop tokens can only be used inside a relation loop.
Key Loop Token |
Description |
|
Inserts the one-based index of the current relation. |
|
Inserts the name of the current relation. |
|
Inserts the name of the key in the current structure from which the relation originates. |
|
Inserts the name of the structure targeted by this relation. |
<RELATION_TOSTRUCTURE_NOPLURAL>
|
Inserts the name of the structure targeted by this relation. If the name of the structure ends with an "S" character it will be removed. |
|
Inserts the name of the structure targeted by this relation. If the name of the structure does not end with an "S" character one will be added. |
|
Inserts the name of the key in the structure targeted by this relation. |
|
Inserts text indicating whether the from key allows changes to existing key entries. |
|
Inserts the key packing density for the from key. |
|
Inserts the description of the from key. Be aware that key descriptions are optional in Repository, so this token may expand to nothing! |
|
Inserts text indicating whether the from key allows duplicate values. |
|
Inserts text indicating where duplicate values are inserted for the from key. |
|
Inserts the length of the from key. The length of the key is the sum of the length of all key segments. |
|
Inserts the from keys null key type. The token should only be used within a <IF NULLKEY> expression. |
|
Inserts the from keys null key value. The token should only be used within an <IF NULLKEY> expression. |
|
Inserts the number of the from key, primary key is key 0, first alternate key is key 1, and so on. |
|
Inserts the ordering sequence of the from key, ascending or descending. |
|
Inserts the number of from key segments defined. |
|
If the from key does not allow duplicates then inserts the text UNIQUE, otherwise nothing is inserted. |
|
Inserts text indicating whether the to key allows changes to existing key entries. |
|
Inserts the key packing density for the to key. |
|
Inserts the description of the to key. Be aware that key descriptions are optional in Repository, so this token may expand to nothing! |
|
Inserts text indicating whether the to key allows duplicate values. |
|
Inserts text indicating where duplicate values are inserted for the to key. |
|
Inserts the length of the to key. The length of the key is the sum of the length of all key segments. |
|
Inserts the to keys null key type. The token should only be used within a <IF NULLKEY> expression. |
|
Inserts the to keys null key value. The token should only be used within an <IF NULLKEY> expression. |
|
Inserts the number of the to key, primary key is key 0, first alternate key is key 1, and so on. |
|
Inserts the ordering sequence of the to key, ascending or descending. |
|
Inserts the number of to key segments defined. |
|
If the to key does not allow duplicates then inserts the text UNIQUE, otherwise nothing is inserted. |
Copyright © 2018 Synergex International, Inc.