ENCODING
How numeric data in the body of a message is represented when the message is sent to this destination. The property specifies the representation of binary integers, packed decimal integers, and floating point numbers.
Applicable Objects
Queue, Topic
JMS administration tool long name: ENCODING
JMS administration tool short name: ENC
Programmatic access
Setters/getters
- MQDestination.setEncoding()
- MQDestination.getEncoding()
Values
- ENCODING property
-
The valid values that the ENCODING property can take are constructed from the three sub-properties:
- integer encoding
- Either normal or reversed
- decimal encoding
- Either normal or reversed
- floating-point encoding
- IEEE normal, IEEE reversed, or z/OS
The ENCODING property is expressed as a three-character string with the following syntax:
{N|R}{N|R}{N|R|3}
In this string:- N denotes normal
- R denotes reversed
- 3 denotes z/OS
- The first character represents integer encoding
- The second character represents decimal encoding
- The third character represents floating-point encoding
This provides a set of twelve possible values for the ENCODING property.
There is an additional value, the string NATIVE, which sets appropriate encoding values for the Java platform.
The following examples show valid combinations for ENCODING:ENCODING(NNR) ENCODING(NATIVE) ENCODING(RR3)
Parent topic: Properties of IBM MQ classes for JMS objects