COBOL と サービス インターフェイスのデータ型の対応

どの COBOL データ型が使用できるサービス インターフェイスのデータ型 (Web サービス、.NET インターフェイス、および Java インターフェイスを含む) に対応しているかについて説明します。
制約事項: 本トピックは、Windows 環境 (ローカル開発) にのみ該当します。
制約事項: 本トピックは、Enterprise Server 機能が有効な場合にのみ該当します。
表 1. Comp フィールド
COBOL データ項目 インターフェイス フィールドのデフォルト タイプ
使用法 桁数 符号 Web サービス Java .NET
comp-1 と comp-2 以外の comp フィールド 1-2 あり byte byte SByte
1-2 なし unsignedByte byte Byte
3-4 あり short short Int16
3-4 なし unsignedShort short UInt16
5-9 あり int int Int32
5-9 なし unsignedInt int UInt32
10-18 あり long long Int64
10-18 なし unsignedLong long UInt64
19+ integer BigInteger Decimal
comp-1 float float Single
comp-2 double double Double
表 2. ディスプレイ フィールドおよび外部浮動小数点フィールド
COBOL データ項目 インターフェイス フィールドのデフォルト タイプ
タイプ 10 進数 Web サービス Java .NET
ディスプレイ、外部浮動小数点 0 integer BigInteger Decimal
>0 decimal BigDecimal Decimal
表 3. 英数字フィールドおよび英数字編集フィールド
COBOL データ項目 インターフェイス フィールドのデフォルト タイプ
タイプ Web サービス Java .NET
英数字、英数字編集 string string string
表 4. ポインター フィールドおよびインデックス フィールド
COBOL データ項目 インターフェイス フィールドのデフォルト タイプ
タイプ Web サービス Java .NET
ポインター、インデックス unsignedLong long UInt64