COBOL to Service Interface Data Type Matches

The tables below describes which COBOL data types correspond to available Service Interface data types, including Web services, Java, COM, and .NET service interfaces.

COBOL Data Item Interface Field Default Type
Usage Digits Signed Web Service Java COM .NET
comp fields other than comp-1 and comp-2 1-2 yes byte byte byte SByte
1-2 no unsignedByte byte byte Byte
3-4 yes short short short Int16
3-4 no unsignedShort short short UInt16
5-9 yes int int int Int32
5-9 no unsignedInt int int Uint32
10-18 yes long long long Int64
10-18 no unsignedLong long long UInt64
19+ integer BigInteger double Decimal
comp-1 float float float Single
comp-2 double double double Double
Comp Fields

COBOL Data Item Interface Field Default Type
Type Decimal Digits Web Service Java COM .NET
Display, External Float 0 integer BigInteger double Decimal
>0 decimal BigDecimal double Decimal
Display and External Float Fields

COBOL Data Item Interface Field Default Type
Type Web Service Java COM .NET
Alphanumeric, Alphanumeric Edited string string string string
Alphanumeric and Alphanumeric Edited Fields

COBOL Data Item Interface Field Default Type
Type Web Service Java COM .NET
Pointer, Index unsignedLong long long UInt64
Pointer and Index Fields