UNS(digits)

The UNS keyword is a numeric data type keyword. It is used in a free-form definition to indicate that the item has unsigned 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 unsigned integer field with 10 digits. It occupies 4 bytes in storage.

  DCL-S num_elems UNS(10);