TurboIMAGE/XL Database Management System Reference Manual MPE/iX V6.5 (30391-90011)

Chapter 3 67
Defining a Database
Item Part
a specific type of TurboIMAGE/XL data item. However, for consistency, R-type items are
recommended for storing item values in HP 3000 real format and E-type items are
recommended for storing values in IEEE format.
Table 3-3. relates TurboIMAGE/XL type designators and sub-item lengths to the data
types typically used to process them in the available programming languages.
Note that the UNIT-COST item (P8) in the INVENTORY data set is easier to process with
COBOL II or RPG programs than with the other languages because packed data is a
standard data type in COBOL II and RPG. An actual database can be designed so that
some data sets are processed by programs coded in one language and others by programs
coded in another language. Another data set can be conveniently processed by programs
written in any of the languages.
Table 3-3. TurboIMAGE/XL Data Types and Programming Languages
Data\
Type
BBASIC C COBOL II FORTRAN
77
Pascal RPG
E2 Short
real
float Real Real
E4 Real double Double
precision
Longreal
a
I Short
integer
short int Computational
S9 to S9(4)
Integer*2 −32768..32767
[subrange]
Binary
I2 Integer int Computational
S9(5) to S9(9)
Integer*4 Integer Binary
I4 Computational
S9(10) to S9(18)
Longint Binary
J Short
integer
short int Computational
S9 to S9(4)
Integer*2 −32768..32767
[subrange]
Binary
J2 Integer int Computational
S9(5) to S9(9)
Integer*4 Integer Binary
J4 Computational
S9(10) to S9(18)
Longint Binary
K1 unsigned
short
Logical 0..65535
[subrange]
Kn
b
Logical
Integer
c
P4 char[2] Computational-3
S9(3)
Packed array
[1..2] of char
c
P8 char[4] Computational-3
S9(7)
Packed array
[1..4] of char
c
Pn Computational-3
S9(n-1)
Numeric