Miscellaneous argument types for COBOL and Java
There are miscellaneous cases of COBOL items that can be used as arguments in an INVOKE statement.
The COBOL miscellaneous argument types and the corresponding Jave types are listed in the following table.
COBOL argument | Corresponding Java™ data type |
---|---|
Reference-modified item of usage display with length one | byte |
Reference-modified item of usage national with length one (either an elementary data item of usage national or a national group item) | char |
SHIFT-IN and SHIFT-OUT special registers | byte |
LINAGE-COUNTER special register when its usage is binary | int |
LENGTH OF special register | int |
The following table lists COBOL literal types that can be used as arguments in an INVOKE statement, with the corresponding Java type.
COBOL literal argument | Corresponding Java data type |
---|---|
Fixed-point numeric literal with no decimal positions and with nine digits or less | int |
Floating-point numeric literal | double |
Figurative constant ZERO | int |
One-character alphanumeric literal | byte |
One-character national literal | char |
Symbolic character | byte |
Figurative constants SPACE, QUOTE, HIGH-VALUE, or LOW-VALUE | byte |