|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Why won't the Conv option work in an MQGET |
« View previous topic :: View next topic » |
Author |
Message
|
NickG |
Posted: Wed Aug 11, 2004 2:49 am Post subject: Why won't the Conv option work in an MQGET |
|
|
Newbie
Joined: 28 May 2004 Posts: 5
|
Another system is sending message to my queue in ASCII, my program states
MOVE MQMI-NONE TO MQMD-CORRELID
MOVE MQMI-NONE TO MQMD-MSGID
MOVE MQGMO-NO-WAIT TO MQGMO-OPTIONS
ADD MQGMO-CONVERT TO MQGMO-OPTIONS
ADD MQGMO-SYNCPOINT TO MQGMO-OPTIONS
MOVE LENGTH OF DSSMQ-MQ-MESSAGE TO DSSMQ-MSG-LENGTH
DSSMQ-DATA-LENGTH
CALL "MQGET"
USING DSSMQ-HCONN
, DSSMQ-Q-HANDLE
, DSSMQ-MESSAGE-DESCRIPTOR
, DSSMQ-GMOPTIONS
, DSSMQ-MSG-LENGTH
, DSSMQ-MQ-MESSAGE
, DSSMQ-DATA-LENGTH
, DSSMQ-COMPLETION-CODE
, DSSMQ-REASON-CODE
But the message is coming through as gobblygook. Translated the message on the queue in a readable form and it looks fine(ie correct format) so what is going wrong? |
|
Back to top |
|
 |
zpat |
Posted: Wed Aug 11, 2004 2:54 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Is the message format MQSTR? Is the CCSID set? Have you checked the MQGET return and reason code? |
|
Back to top |
|
 |
NickG |
Posted: Wed Aug 11, 2004 3:10 am Post subject: |
|
|
Newbie
Joined: 28 May 2004 Posts: 5
|
The return and reason code were ok. Is the CSSID and format set by the sending system or is it the receiving system that sets this. I'm expecting the finished message to be in EBCDIC by the way. |
|
Back to top |
|
 |
zpat |
Posted: Wed Aug 11, 2004 3:43 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
They are set by the originating program when it does its MQPUT.
Convert on the MQGET works when the MQMD format is set to MQSTR and the CCSID/encoding values of the source message and the receiving system are supported. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|