requirement is to remove carriage return from an incoming message in IBM MQ.
Our Application expects character length of 1579 in response message, but its comes as 1581 with "CRLF" at end
When execute below command
/opt/mqm/samp/bin/amqsbcg TXN_RCV_FRM_SYS TXNSYS850.QM
length - 1581 of 1581 bytes
When same response message placed by removing "CRLF" with /opt/mqm/samp/bin/amqsput TXN_RCV_FRM_SYS TXNSYS850.QM , application able to pick the message from QM
Please guide me any configuration setting to remove these characters from queues or QM level
28 march 2018 issue resolved :-)
MQGMO_CONVERT
Set above value to true...
This option converts the application data in the message to conform to the CodedCharSetId and Encoding values specified in the MsgDesc parameter on the MQGET call. The data is converted before it is copied to the Buffer parameter.
The Format field specified when the message was put is assumed by the conversion process to identify the nature of the data in the message. The message data is converted by the queue manager for built-in formats, and by a user-written exit for other formats. See Data conversion for details of the data-conversion exit.
If conversion is successful, the CodedCharSetId and Encoding fields specified in the MsgDesc parameter are unchanged on return from the MQGET call.
If only conversion fails the message data is returned unconverted The CodedCharSetId and Encoding fields in MsgDesc are set to the values for the unconverted message. The completion code is MQCC_WARNING in this case.
In either case, these fields describe the character-set identifier and encoding of the message data that is returned in the Buffer parameter.
See the Format field described in MQMD - Message descriptor for a list of format names for which the queue manager performs the conversion.
CCSD Details of working and not working from amqsbcg
not working
Encoding : 273 CodedCharSetId : 1208
working
Encoding : 546 CodedCharSetId : 1208