ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Sending channel read

Post new topic  Reply to topic
 Sending channel read « View previous topic :: View next topic » 
Author Message
Arsench
PostPosted: Thu Nov 13, 2008 1:19 am    Post subject: Sending channel read Reply with quote

Newbie

Joined: 13 Nov 2008
Posts: 5

Hello, as a new in MQ world, can you help me please?

How to read channels, when sending messages via MQ or is it possible?

Im sending messages and in logs appears that the sent message are chaging,now I want to read the channels when sending messages is it possible?


Thanks
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Nov 13, 2008 1:49 am    Post subject: Re: Sending channel read Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Arsench wrote:
How to read channels, when sending messages via MQ or is it possible?

First I suggest to read all the information available in the manuals on the subject. I recommend beginning here http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm.mq.csqzae.doc/ic11120_.htm
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 13, 2008 2:21 am    Post subject: Re: Sending channel read Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Arsench wrote:
How to read channels, when sending messages via MQ or is it possible?


You don't read channels. Applications should not be concerned with the movement of messages

Arsench wrote:
Im sending messages and in logs appears that the sent message are chaging


Sent messages are not changed by the sending. Applications shouldn't be reading logs.

Arsench wrote:
now I want to read the channels when sending messages is it possible?


There's nothing to read.

Get some training, read some books.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Arsench
PostPosted: Thu Nov 13, 2008 8:07 am    Post subject: Re: Sending channel read Reply with quote

Newbie

Joined: 13 Nov 2008
Posts: 5

Vitor wrote:
Arsench wrote:
How to read channels, when sending messages via MQ or is it possible?


You don't read channels. Applications should not be concerned with the movement of messages

Arsench wrote:
Im sending messages and in logs appears that the sent message are chaging


Sent messages are not changed by the sending. Applications shouldn't be reading logs.

Arsench wrote:
now I want to read the channels when sending messages is it possible?


There's nothing to read.

Get some training, read some books.





Im very sorry all now I know the correct problem after reading about MQ.

The problem is that when receiving a message from queue, its doesnt change correctly. For example

receiving ABCBBA when the correct is BBAABC. Can you say please where to llok for a problem, in the MQ or where ?

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 13, 2008 8:13 am    Post subject: Re: Sending channel read Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Arsench wrote:
The problem is that when receiving a message from queue, its doesnt change correctly.


How are you expecting it to change?

Arsench wrote:
receiving ABCBBA when the correct is BBAABC. Can you say please where to llok for a problem, in the MQ or where ?


The only thing MQ will change (and only if you ask it to) is the code page of the message. It won't change the content from BBAABC to ABCBBA any more than it will change APPLE to ORANGE.

Now if you're talking about packed numbers being sent rather than letters, you'd get this transposition if one platform was big endian & the other little endian.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 13, 2008 8:33 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Two possible issues:

sending qmgr and receiving qmgr have different CCSIDs, AND no data conversion was specified on either the SENDER channel or the receiving application MQGET with GMO_CONVERT.

numeric message data came from Intel platform and arrived on non-Intel platform. Or the other way around. Intel hardware stores numbers Little-endian (or is it Big-endian?) Other hardware platoforms store numbers the other way. Thus, on Intel, 123 would be understood on AIX or m/f as 321.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Arsench
PostPosted: Thu Nov 13, 2008 8:42 am    Post subject: Re: Sending channel read Reply with quote

Newbie

Joined: 13 Nov 2008
Posts: 5

Vitor wrote:
Arsench wrote:
The problem is that when receiving a message from queue, its doesnt change correctly.


How are you expecting it to change?

Arsench wrote:
receiving ABCBBA when the correct is BBAABC. Can you say please where to llok for a problem, in the MQ or where ?


The only thing MQ will change (and only if you ask it to) is the code page of the message. It won't change the content from BBAABC to ABCBBA any more than it will change APPLE to ORANGE.

Now if you're talking about packed numbers being sent rather than letters, you'd get this transposition if one platform was big endian & the other little endian.



Thank you very much, yes you are right, I mean the numeric message data.
Back to top
View user's profile Send private message
mvic
PostPosted: Thu Nov 13, 2008 8:43 am    Post subject: Re: Sending channel read Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

Arsench wrote:
Thank you very much, yes you are right, I mean the numeric message data.

It might help us comment further if you could post some copy/paste from what you are looking at on your screen. Plain text not gifs, and not too much please, just enough to show what you are dumping from MQ and what is concerning you.
Back to top
View user's profile Send private message
Arsench
PostPosted: Thu Nov 13, 2008 8:55 am    Post subject: Reply with quote

Newbie

Joined: 13 Nov 2008
Posts: 5

bruce2359 wrote:
Two possible issues:

sending qmgr and receiving qmgr have different CCSIDs, AND no data conversion was specified on either the SENDER channel or the receiving application MQGET with GMO_CONVERT.

numeric message data came from Intel platform and arrived on non-Intel platform. Or the other way around. Intel hardware stores numbers Little-endian (or is it Big-endian?) Other hardware platoforms store numbers the other way. Thus, on Intel, 123 would be understood on AIX or m/f as 321.

Thank you friend, may be thats the problem, but Im thinking if I have a platform problem, can be receive all messages like this, not only one no?

What you advice on it?

Regards
Back to top
View user's profile Send private message
Arsench
PostPosted: Thu Nov 13, 2008 9:12 am    Post subject: Re: Sending channel read Reply with quote

Newbie

Joined: 13 Nov 2008
Posts: 5

mvic wrote:
Arsench wrote:
Thank you very much, yes you are right, I mean the numeric message data.

It might help us comment further if you could post some copy/paste from what you are looking at on your screen. Plain text not gifs, and not too much please, just enough to show what you are dumping from MQ and what is concerning you.


Dear friend I can show the example.
the error is like this (it is just example)


AB12 AB12 AB12 AB12 AB12 AB12 AB12 AB12 ABCSCM
but it must be MCSABC
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 13, 2008 9:34 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

What platform is the sending side? What version of MQ? What CCSID?

What platform is the receiving side? What version of MQ? What CCSID?

Is the sending application new? If not, has the sending application worked in the past? Has the application changed recently?

Is the receiving application new? If not, has the receiving application worked in the past? Has the application changed recently?

What kind of data appears incorrect? Numeric? Character? Binary? Other?

Your sameple of data is of little help. An actual image of your data being sent AND received will help us help you.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 13, 2008 10:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Arsench wrote:
What you advice on it?


Best practice is not to move packed data between platforms because of these big endian / little endian issues, but to unpack them into numeric character and get MQ to fix the CCSID for you.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 13, 2008 10:18 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9469
Location: US: west coast, almost. Otherwise, enroute.

Quote:
What you advice on it?

The subject is data conversion. It is covered in some detail in the WMQ Application Programming Reference, the WMQ Application Programming Guide, and whitepapers in SupportPacs. There are many references here, as well.

The IBM-recommended best practice for data conversion is to let the receiver make good; or more specifically, let the consuming application MQGET with MQGMO_CONVERT. This will take care of simple string conversions. If you message data is more complex, you will need to create a conversion utility exit that understands the content of the message data.
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Sending channel read
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.