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?
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?