Integer Variables

<integer declaration>

── INTEGER ────────────────────────────────────────────────────────────►
  ┌◄───────────────────────────── , ─────────────────────────────┐
►─┴─<integer identifier>─┬─────────────────────────────────────┬─┴─────┤
                         └─ := ──<integer constant expression>─┘

Explanation

An integer declaration declares a variable of type INTEGER. The default initial value of an integer variable is 0.

If the := integer constant expression clause is specified for an integer identifier, this integer constant expression is used as the initial value for that integer identifier.

The values of integer variables are saved across a halt/load and are restored when the job restarts.