COBOL conversions

COBOL conversions describe how COBOL data types are converted to ODBC data types.

Table 1. Conversions of COBOL data types to ODBC data types
COBOL ODBC
Alphanumeric SQL_CHAR
Floating Point

(If 4 bytes) SQL_FLOAT

(If 8 bytes) SQL_DOUBLE

Integer

(If 2 bytes) SQL_SMALLINT

(If 4 bytes) SQL_INTEGER

Numeric SQL_NUMERIC
Packed SQL_DECIMAL