There are a number of methods that you can use to copy an existing table definition. Using an existing definition and modifying only the portions required simplifies coding and the assignment of data. In the case of distributed development, it also assists in the management of table definitions across nodes as the table containing the data must be defined on the local and remote nodes.
You can copy a definition from within the Table Definer or through the use of shareable tools. If the source table is on a TIBCO Object Service Broker node that is remote to the one you are working on, you must copy the definition using a shareable tool.
Two shareable tools, COPY_DEFN and
COPYDEFN, are available to you to copy existing definitions. Using these tools, if the correct security access is set up, you can copy definitions across TIBCO Object Service Broker nodes or within your local node.
COPY_DEFN is called from within a rule and
COPYDEFN executed via the workbench option CD copy defn.
The following rule calls the tool COPY_DEFN to copy the definition of the DEPARTMENTS table from Node A to Node B. Because a table definition is being copied, values are not required for the arguments
library,
environment, or
parentonly: