Dieses Thema beschreibt, wie die PL/I -to-XML Konverter Generatoren XML Schema Datentypen von Enterprise PL/I for z/OS® Datentypen ableiten.
Hinweis: Der XML-Konverter PL/I unterstützt den Datentyp PICTURE mit dem Währungssymbol nicht.
Tabelle 1. Ableitung des XML-Typs von PL/I - FIXED BINARY und UNSIGNED FIXED BINARY
| PL/I-Typ |
Entsprechender XSD-Typ |
Fixed Binary (n) , wobei n < = 7
|
<xsd:simpleType>
<xsd:restriction base="xsd:byte"/>
<xsd:simpleType>
|
Fixed Binary (n) , wobei 8 < = n < = 15
|
<xsd:simpleType>
<xsd:restriction base="xsd:short"/>
</xsd:simpleType>
|
Feste Binärdatei (n) , wobei 16 < = n < = 31
|
<xsd:simpleType>
<xsd:restriction base="xsd:int"/>
</xsd:simpleType>
|
Fixed Binary (n) , wobei 32 < = n < = 63
|
<xsd:simpleType>
<xsd:restriction base="xsd:long"/>
</xsd:simpleType>
|
Fixed Binary ohne Vorzeichen (n) , wobei n < = 8
|
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedByte"/>
</xsd:simpleType>
|
Feste Binärdatei ohne Vorzeichen (n) , wobei 9 < = n < = 16
|
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedShort"/>
</xsd:simpleType>
|
Fixed Binary ohne Vorzeichen (n) , wobei 17 < = n < = 32
|
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedInt"/>
</xsd:simpleType>
|
Feste Binärdatei ohne Vorzeichen (n) , wobei 33 < = n < = 64
|
<xsd:simpleType>
<xsd:restriction base="xsd:unsignedLong"/>
</xsd:simpleType>
|
Tabelle 2. Ableitung des XML-Typs von PL/I - BINARY FLOAT und DECIMAL FLOAT
| PL/I-Typ |
Entsprechender XSD-Typ |
Binäre Gleitkommazahl (n) , wobei n < = 21
|
<xsd:simpleType>
<xsd:restriction base="xsd:float"/>
</xsd:simpleType>
|
Binary Float (n) , wobei 22 < = n < = 53
|
<xsd:simpleType>
<xsd:restriction base="xsd:double"/>
</xsd:simpleType>
|
Dezimalgleitkomma (n) , wobei n < = 6
|
<xsd:simpleType>
<xsd:restriction base="xsd:float"/>
</xsd:simpleType>
|
Dezimale Gleitkommazahl (n) , wobei 7 < = n < = 16
|
<xsd:simpleType>
<xsd:restriction base="xsd:double"/>
</xsd:simpleType>
|
Tabelle 3. Ableitung des XML-Typs von PL/I - FIXED DECIMAL
| PL/I-Typ |
Entsprechender XSD-Typ |
Feste Dezimalzahl (n, m)
|
<xsd:simpleType>
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="n"/>
<xsd:fractionDigits value="m"/>
</xsd:restriction>
</xsd:simpleType>
|
Tabelle 4. Ableitung des XML-Typs von PL/I - PICTURE
| PL/I-Typ |
Entsprechender XSD-Typ |
Pic '(n) 9' Pic '(n) A' Pic ' (n) X'
Hinweis: Der Datentyp PICTURE mit dem Währungssymbol wird nicht unterstützt.
|
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:length value="n"/>
</xsd:restriction>
</xsd:simpleType>
|
Tabelle 5. Ableitung des XML-Typs von PL/I - BIT, CHARACTER, GRAPHIC, WIDECHAR
| PL/I-Typ |
Entsprechender XSD-Typ |
| Bit (n) Hierbei steht n für ein Vielfaches von 8. Andere Werte werden nicht unterstützt.
|
<xsd:simpleType>
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="m"/>
</xsd:restriction>
</xsd:simpleType>
Hierbei gilt: m = n/8.
|
Zeichen (n)
|
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxlength value="n"/>
</xsd:restriction>
</xsd:simpleType>
|
Grafik (n) Widechar (n)
|
<xsd:simpleType>
<xsd:restriction base="xsd:hexBinary">
<xsd:length value="m"/>
</xsd:restriction>
</xsd:simpleType>
Hierbei gilt: m = 2*n.
|