Syntax Rules

  1. identifier-1 is the name of a data item containing characters to be counted or replaced. Its USAGE must be DISPLAY (implicitly or explicitly).
  2. Each literal is a single-character literal or one of the following figurative literals:
    • ZERO
    • ZEROS
    • ZEROES
    • SPACE
    • SPACES
    • QUOTE
    • QUOTES
    • LOW-VALUE
    • LOW-VALUES
    • HIGH-VALUE
    • HIGH-VALUES
  3. ACUCOBOL-GT does not enforce the one-character limitation. If a string literal has two or more characters, it uses only the first character.