INT(digits)

The INT keyword is a numeric data type keyword. It is used in a free-form definition to indicate that the item has signed integer format.

It must be the first keyword.

The parameter specifies the length in digits. It must be one of 3, 5, 10 or 20, occupying 1, 2, 4, and 8 bytes respectively.

The parameter can be a literal or a named constant. If it is a named constant, the constant must be defined prior to the definition statement.

In the following example
  • field num_elems is defined as an integer field with 10 digits. It occupies 4 bytes in storage.

  DCL-S num_elems INT(10);