Define a Data Structure variable

Data Structure variables can be declared anywhere in a Master Template document after a Data Set has been defined using the DATASTRUCTURE statement. The name of the variable must match the same naming conventions as other variables.

Variables are declared using the DECLARE keyword.

DECLARE variable
DECLARE variable DEFINED_AS type

KCM automatically determine the type of the variable the first time a value is assigned to this variable. All other assignments to that variable must have the same type. The DEFINED_AS keyword can be used to explicitly assign a type. Use of the DEFINED_AS keyword is necessary when an empty variable is created.

A Data Set variable cannot be initialized during declaration. All members are automatically assigned their default empty value.

An example is provided here.

DECLARE life_insurance
DECLARE intermediary
DECLARE customer DEFINED_AS Relation