613-518-1166 info@zimdatabases.com

ZIM Language Reference

-> (Dynamic Rename)

< All Topics

-> (Dynamic Rename)

Renames a component of the set specification in the main command.

A set specification can consist of one or more To use a result, set in a subsequent command and have a component of the set used in a different role, -> (dynamic rename) enables you to rename the component in question.


objname (oldcomponentname -> newcomponentname)



The name of a set, an EntitySet, a relationship, or a role. There must be at least one component in objname.


The existing name of a component in objname.


The new name to be given to the specified component of objname.


When creating a result set, the structure of that set reflects the component names or role names found in the original set specification.

If you want to use the result set in a subsequent command, and you want a component of the set to be used in a different role, dynamic rename (->) enables you to rename the component.

The indicator renames a component of the set specification in the main command.

Oldcomponentname and newcomponentname must both refer to the same underlying object.


If EntitySet Employees also has a role called Managers, dynamic renaming can be used as shown in the following two examples.

find Employees WorkFor Managers where LName = Smith
       keep Employees -> set1
find Employees WorkFor set1 (Employees -> Managers)
       keep Employees -> set1

In the second command, the usage of the only component of set1 is dynamically changed from Employees to Managers.

find Managers -> MSet
 find MSet (Managers -> Employees) WorkFor Managers keep Managers
 if $setcount > 0
  find -> MSet
list all MSet

In a loop, each usage of the Managers component of MSet is dynamically renamed to Employees to select the top managers from an EntitySet of employees.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Table of Contents