Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Data sent over IBM MQ series comes out reversed.

Status
Not open for further replies.

texastig

Technical User
Feb 10, 2006
8
US
My cousin asked me if I could find some help for him about the
IBM MQ and tcp/ip.
This is his problem.
"when he sends data over the mq series the integer values are coming out reversed".

He said if he moves 1324 bits of data it comes out as 4231.
Any help would be appreciated.
Thanks,
Textig
 
Thats because of how the different platforms store integers. Big and litte endian.

Do a google search on endian and it will explain it better.

The issue should not arise if you use MQ and define the message as a MQSTR format and use the convert option on a MQGET call.
 
If it's binary data that's being revesed it's probably the ENCODING attribute of the Message Descriptor that needs to be corrected. This is unusual as the source and target encodings are normally correct.

Make sure that the encoding for the message as sent and as received are correct for the platforms and you should be ok.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top