Every programming language is designed with some predefined character sets, symbols, keywords, terms, and conditions. Similarly, COBOL has predefined character sets, symbols, keywords, and conditions.

These are very important while writing programs with the same standards everywhere./p>

Below are the primary and known terms in the COBOL variable –

  • Character sets - The character is the basic unit of any programming language, and the set of valid characters creates the character set.
  • Character strings - COBOL words, variable names, literals, keywords, or comments delimited by separators(space or comma) form COBOL strings.
    • COBOL Words - A COBOL word is a set of characters that forms a user-defined word, a system-name, or a reserved word.
    • Variables / Data Item - Variable is also called as a variable. Variable is a name used to identify the memory location where the program writes, retrieves the data while processing.
    • Literals - A literal is a character-string value specified either by the characters or using a figurative constant.
    • Constants - A constant is a variable that has only one value throughout the program execution.
    • Figurative constants - Figurative constants are the constants that value is predefined in COBOL variable. These figurative constants are known to the COBOL variable and perform the specific task if used.
    • Comments - A comment is a character-string with a combination of any characters of the computer. It has no effect on the execution of the program.
  • Separators - A separator is a character or a string of contiguous characters that separates character-strings. A separator is a string with one or more punctuation characters.