COBOL Manual for TNS and TNS/R Programs

Data Type Correspondence
HP COBOL Manual for TNS and TNS/R Programs522555-006
B-6
Table B-5. Structured, Logical, Set, and File Types
Byte-
Addresse
dStructur
e
Word-Addressed
Structure
Logical
(true or
false) Boolean Set File
HP C and
HP C++
-- struct -- -- -- --
COBOL -- 01-level RECORD -- -- -- --
FORTRAN RECORD -- LOGICAL
1
-- -- --
Pascal RECORD,
byte-
aligned
RECORD, word-
aligned
-- BOOLEAN Set File
SQL/MP or
SQL/MX
-- -- -- -- -- --
TAL
pTAL
Byte-
addressed
standard
STRUCT
pointer
Word-addressed
standard STRUCT
pointer
-- -- -- --
Return
Value Size
(Words)
1 or 2,
depends
on
declared
pointer
size
1 or 2, depends on
declared pointer
size
1 or 2,
depends
on
compiler
directive
111
1. LOGICAL is normally defined as 2 bytes. The LOGICAL*2 and LOGICAL*4 compiler directives redefine
LOGICAL.