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 » Why won't the Conv option work in an MQGET

Post new topic  Reply to topic
 Why won't the Conv option work in an MQGET « View previous topic :: View next topic » 
Author Message
NickG
PostPosted: Wed Aug 11, 2004 2:49 am    Post subject: Why won't the Conv option work in an MQGET Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Aug 11, 2004 2:54 am    Post subject: Reply with quote

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
View user's profile Send private message
NickG
PostPosted: Wed Aug 11, 2004 3:10 am    Post subject: Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Wed Aug 11, 2004 3:43 am    Post subject: Reply with quote

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
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 » Why won't the Conv option work in an MQGET
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.