Define a character string variable or constant

Syntax


dimension character <variable/constant name>

Description


Used in conjunction with the DIMENSION keyword; declares the named variable or constant to be a character string.  Note that it is not necessary to explicitly declare the size of the string.  Constant strings are assigned using a separate CONSTANT statement.  Non-constant string can be dynamically assigned from within model code using simple assignment statements.

Example


dimension character string1

constant string1 = 'hello'


dimension character string2

initial

   string2 = 'goodbye'

end