CRE Programmer's Guide

Data Type Correspondence
Common Run-Time Environment (CRE) Programmer’s Guide528146-004
A-2
SQL CHAR NUMERIC(1)…
NUMERIC(4)
PIC 9(1) COMP…
PIC 9(4) COMP
SMALLINT
NUMERIC(5)…
NUMERIC(9)
PIC 9(1) COMP
PIC 9(9) COMP
INTEGER
TAL
pTAL
STRING
UNSIGNED(8)
INT
INT(16)
UNSIGNED(16)
INT(32)
Return
Value Size
(Words)
11 2
Table A-1. Integer Types, Part 1 (page 2 of 2)
Language 8-Bit Integer 16-Bit Integer 32-Bit Integer
1. Unsigned Integer.
2. Index Data Item is a 16-bit integer in COBOL 74 and a 32-bit integer in HP COBOL.
3. HP COBOL only.
4. INTEGER is normally equivalent to INTEGER*2. The INTEGER*4 and INTEGER*8 compiler directives
redefine INTEGER.