In The Spotlight
The concept of the named constant is closely associated with the concept of a literal. Miss the introduction to using declarations? Read it here: Part 1
By Brian Meyers and Jim Buck
Editor's Note: This article is excerpted from chapter 4 of Programming in ILE RPG, Fifth Edition.
A literal is a means of noting a fixed value (e.g., a number, a character string, or a date). For example, the number 789 is a literal, as is the character string ‘September’. ILE RPG lets you associate a data name with a literal so that you can reference the literal by its name throughout your program. The resulting data item is a named constant.