Constants

The PL/MX constants associate identifiers with immutable values.

Syntax

	identifier CONSTANT datatype := initial-value-expression  
Where,
identifier

Is a valid PL/MX identifier that specifies the name to associate with the initial-value-expression of the type designated by the datatype.

datatype

Specifies a PL/MX datatype as described in Datatypes.

initial-value-expression

Is a valid PL/MX expression for the specified datatype. The initial-value-expression is calculated and assigned to the constant at the point of declaration.

Example

Declare a binary integer constant with the value 4096:

	fourK CONSTANT BINARY_INTEGER := 4096;