Top
NetCOBOL V11.0 J Adapter Class GeneratorUser's Guide
FUJITSU Software

5.5.1 Data types

The Java data types are mapped to the COBOL data types as shown below:

Java data type

COBOL data type

boolean

PIC 1

byte

PIC X

char

PIC X(2)

  • When an ANK character is stored, the first byte is used and the second byte is X'00'.

  • When a national character is stored, two bytes are used.

  • Data is mapped when code option -cs (native code) or no code option is specified.

PIC N

  • When an ANK character is stored, the first byte is used and the second byte is X'00'.

  • When a national character is stored, two bytes are used.

  • Data is mapped when code option -cu (Unicode) is specified.

short

PIC S9(4) COMP-5

int

PIC S9(9) COMP-5

long

PIC S9(18) COMP-5

float

COMP-1

double

COMP-2

Array

Object reference array adapter class

Object

Object reference adapter class