Integer Format

The integer format is similar to the binary format with two exceptions:

You define an integer field by specifying I in the Data-Type entry of the appropriate specification. You can also define an integer field using the LIKE keyword on a definition specification where the parameter is an integer field.

The length of an integer field is defined in terms of number of digits; it can be 3, 5, 10, or 20 digits long. A 3-digit field takes up 1 byte of storage; a 5-digit field takes up 2 bytes of storage; a 10-digit field takes up 4 bytes; a 20-digit field takes up 8 bytes. The range of values allowed for an integer field depends on its length.

Field length
Range of Allowed Values
3-digit integer
-128 to 127
5-digit integer
-32768 to 32767
10-digit integer
-2147483648 to 2147483647
20-digit integer
-9223372036854775808 to 9223372036854775807

Note the following about integer fields:



[ Top of Page | Previous Page | Next Page | Contents | Index ]