Named Constants
Named Constants
You can give a name to a constant. This name represents a specific value which cannot be changed when the program is running. Numeric named constants have no predefined precision. Their actual precision is defined by the context that is specified.
See Examples of literals used to initialize fields for examples of defining named constants. The value of the named constant is specified in the keyword section of the definition specification. The presence of the keyword CONST is optional, however. For example, to assign a value of ‘ab’ to a constant, you could specify either CONST(‘ab’) or ‘ab’ in the keyword section.
An enumeration is a list of named constants. See Free-Form Enumeration Definition.