Rational Developer for System z

Supported mappings between language data types and XML Schema built-in data types

This topic describes the supported mappings between the data types of the supported languages (COBOL and PL/I) and the XML Schema built-in datatypes.

COBOL data types

Columns:
     0   COBOL Address type
     1   COBOL Alphabetic type
     2   COBOL Alphanumeric-edited type
     3   COBOL Alphanumeric type
     4   COBOL DBCS type
     5   COBOL External floating-point type
     6   COBOL Internal floating-point type
     7   COBOL Numeric-edited type
     8   COBOL Numeric type
     9   COBOL Object reference type
    10  COBOL National (Unicode) type

0 = The mapping is not supported.
1 = The mapping is supported.

Table 1. COBOL-XML Schema mappings
XML Schema Type 0 1 2 3 4 5 6 7 8 9 10
string 0 1 1 1 1 0 0 1 1 0 1
boolean 0 1 0 1 0 0 0 0 1 0 0
float 0 0 0 0 0 0 1 1 1 0 0
double 0 0 0 0 0 0 1 1 1 0 0
decimal 0 0 0 1 0 0 0 1 1 0 0
duration 0 0 0 1 0 0 0 0 0 0 0
dataTime 0 0 0 1 0 0 0 0 0 0 0
time 0 0 0 1 0 0 0 0 0 0 0
date 0 0 0 1 0 0 0 0 0 0 0
gYearMonth 0 0 0 1 0 0 0 0 0 0 0
gYear 0 0 0 1 0 0 0 0 0 0 0
gMonthDay 0 0 0 1 0 0 0 0 0 0 0
gDay 0 0 0 1 0 0 0 0 0 0 0
gMonth 0 0 0 1 0 0 0 0 0 0 0
hexBinary 0 0 0 0 0 0 0 0 0 0 0
base64Binary 0 0 0 0 0 0 0 0 0 0 0
anyURI 0 0 0 1 0 0 0 0 0 0 0
QName 0 0 0 1 0 0 0 0 0 0 0
NOTATION 0 0 0 1 0 0 0 0 0 0 0
normalizedString 0 0 0 1 0 0 0 0 0 0 0
token 0 0 0 1 0 0 0 0 0 0 0
language 0 0 0 1 0 0 0 0 0 0 0
IDREFS 0 0 0 0 0 0 0 0 0 0 0
ENTITIES 0 0 0 0 0 0 0 0 0 0 0
NMTOKEN 0 0 0 1 0 0 0 0 0 0 0
NMTOKENS 0 0 0 0 0 0 0 0 0 0 0
Name 0 0 0 1 0 0 0 0 0 0 0
NCName 0 0 0 1 0 0 0 0 0 0 0
ID 0 0 0 1 0 0 0 0 0 0 0
IDREF 0 0 0 1 0 0 0 0 0 0 0
ENTITY 0 0 0 0 0 0 0 0 0 0 0
integer 0 0 1 1 0 0 0 1 1 0 0
nonPositiveInteger 0 0 1 1 0 0 0 1 1 0 0
NegativeInteger 0 0 1 1 0 0 0 1 1 0 0
long 0 0 1 1 0 0 0 1 1 0 0
int 0 0 1 1 0 0 0 1 1 0 0
short 0 0 1 1 0 0 0 1 1 0 0
byte 0 0 1 1 0 0 0 1 1 0 0
nonNegativeInteger 0 0 1 1 0 0 0 1 1 0 0
unsignedLong 0 0 1 1 0 0 0 1 1 0 0
unsignedInt 0 0 1 1 0 0 0 1 1 0 0
unsignedShorti 0 0 1 1 0 0 0 1 1 0 0
unsignedByte 0 0 1 1 0 0 0 1 1 0 0
positiveInteger 0 0 1 1 0 0 0 1 1 0 0

PL/I data types

Columns:
0  PLI Float type
1  PLI Integer type
2  PLI Packed type
3  PLI Picture type
4  PLI Fixed-length string
5  PLI Variable-length string
6  PLI Picture string type

0 = The mapping is not supported.
1 = The mapping is supported.

Table 2. PL/I-XML Schema mappings
XML Schema Type 0 1 2 3 4 5 6
string 1 1 1 1 1 1 1
boolean 0 1 1 1 1 1 1
float 1 0 0 0 0 0 0
double 1 0 0 0 0 0 0
decimal 0 1 1 0 0 0 0
duration 0 0 0 0 0 0 0
dataTime 0 0 0 0 0 0 0
time 0 0 0 0 0 0 0
date 0 0 0 0 0 0 0
gYearMonth 0 0 0 0 0 0 0
gYear 0 0 0 0 0 0 0
gMonthDay 0 0 0 0 0 0 0
gDay 0 0 0 0 0 0 0
gMonth 0 0 0 0 0 0 0
hexBinary 0 0 0 0 1 0 0
base64Binary 0 0 0 0 0 0 0
anyURI 0 0 0 0 0 0 0
QName 0 0 0 0 0 0 0
NOTATION 0 0 0 0 0 0 0
normalizedString 0 0 0 0 0 0 0
token 0 0 0 0 0 0 0
language 0 0 0 0 0 0 0
IDREFS 0 0 0 0 0 0 0
ENTITIES 0 0 0 0 0 0 0
NMTOKEN 0 0 0 0 0 0 0
NMTOKENS 0 0 0 0 0 0 0
Name 0 0 0 0 0 0 0
NCName 0 0 0 0 0 0 0
ID 0 0 0 0 0 0 0
IDREF 0 0 0 0 0 0 0
ENTITY 0 0 0 0 0 0 0
integer 0 1 1 1 1 1 1
nonPositiveInteger 0 1 1 1 1 1 1
NegativeInteger 0 1 1 1 1 1 1
long 0 1 1 1 1 1 1
int 0 1 1 1 1 1 1
short 0 1 1 1 1 1 1
byte 0 1 1 1 1 1 1
nonNegativeInteger 0 1 1 1 1 1 1
unsignedLong 0 1 1 1 1 1 1
unsignedInt 0 1 1 1 1 1 1
unsignedShorti 0 1 1 1 1 1 1
unsignedByte 0 1 1 1 1 1 1
positiveInteger 0 1 1 1 1 1 1


Feedback