Mapping of RPG Internal Data Types

The Plug-in maps RPG internal data types to simple XML schema types.

RPG Internal Data Type Simple XML Schema Type
Blank If the decimal is blank: string; otherwise, decimal
A string
B If the length is 4 or less, short; otherwise, int
C string
D date
F If the length is 4, float; otherwise, double

Note that these items are presumed to be in the IEEE-754 format in the binary data.

G string
I If the length is 3, byte
If the length is 5, short
If the length is 10, int
If the length is 20, long
If the length is blank, int
N string
P decimal
S decimal
T time
U If the length is 3: unsignedByte


If the length is 5: unsignedShort


If the length is 10: unsignedInt


If the length is 20: unsignedLong


If the length is blank, unsignedInt

Z dateTime