The following information is part of the business object attribute level application text.
Property | Values | Description |
---|---|---|
ParamType | Input/Output/InOut | Indicates what type of parameter the attribute represents. |
Offset | Any integer value | Indicates the offset in the byte array from where the parameter value starts. |
Signed | True/false | For integer /short/long types, the property indicates if it is signed. If not set, the value is taken as unsigned. |
DataLength | Any integer value | Applies to integer/short/long types. Used to distinguish the data length for the signed/unsigned types. If not set, a default of 4 is assumed. |
DecimalPositions | Any integer value | Applies for zoned decimal and packed decimal types. The value represents the number of decimal positions. |
PackedDec | True/false | If set to true, the attribute represents a packed decimal. |
ZonedDec | True/false | If set to true, the attribute represents a zoned decimal. |
The Toolbox for OS/400 has data conversion classes included. The following table matches the OS/400 data types with the corresponding IBM WebSphere Business Integration datatypes, along with the data conversion class used.
Table 7. Conversion datatypes and classes
OS/400 data type | WebSphere Business Integration Express datatype | Data conversion class |
---|---|---|
Signed two byte OS/400 number. | Integer - The app specific info - Signed=true; DataLength=2 | OS400Bin2 |
Signed four byte OS/400 number. | Integer - The app specific info - Signed=true; DataLength=4 | OS400Bin4 |
Signed two byte OS/400 floating point number. | Float | OS400Float4 |
Signed four byte OS/400 floating point number. | Double | OS400Float8 |
Unsigned two byte OS/400 number. | Integer - the app specific info Signed=false; DataLength=2 | OS400UnsignedBin2 |
Unsigned four byte OS/400 number. | Integer - the app specific info Signed=false; DataLength=4 | OS400UnsignedBin4 |
Packed-Decimal OS/400 number. | String - the MaxLength attribute property needs to have the number of digits. App specific info - DecimalPositions=<number of decimal positions>; PackedDec=true | OS400PackedDecimal |
Zoned-Decimal OS/400 number. | String - the MaxLength attribute property needs to have the number of digits. App specific info - DecimalPositions=<number of decimal positions>; ZonedDec=true | OS400ZonedDecimal |
Character data | String - MaxLength has the maximun length for the character data. | OS400Text |
Date data | String - MaxLength has the maximun length for the date data. | OS400Text |