Big Integer

A big integer (BIGINT) is an 8-byte integer SQL data type that can be declared in COBOL as:

PIC S9(18) COMP-3.

OpenESQL

OpenESQL supports a maximum size of S9(18) for COBOL data items used as host variables to hold values mapped from the SQL data type BIGINT. You should be aware, however, that a BIGINT data type can hold a value that is larger than the maximum value that can be held in a PIC S9(18) data item and ensure that your code checks for data truncation.