Author |
Message
|
mreddington |
Posted: Tue Apr 24, 2007 11:57 pm Post subject: MQ-IMS issue |
|
|
Voyager
Joined: 14 Aug 2006 Posts: 78
|
Hi all,
We created the MQ configuration for MQ-IMS transactions.
Developers are using the queue manager on a SUN server to send messages to the IMS on the mainframe side. Reply from IMS has been received succesfully. But when the developers are trying to read the messages from the queue, they are receving junk data. When i tried to do amqsget on the queue, i get a 2080 error.
When amqsbcg was issued, i was able to display the contents of the queue. Please find it below: Can you suggest any idea to resolve this issue? I highly appreciate your immediate reply, thanks a lot for everyone who helps me resolve the issue.
Message content from the queue when amqsbcg has been issued:
$ /opt/mqm/samp/bin/amqsbcg
AMQSBCG0 - starts here
**********************
Required parameter missing - queue name
Usage: /opt/mqm/samp/bin/amqsbcg QName [ QMgrName ]
$ /opt/mqm/samp/bin/amqsbcg QL_1IP.MQS5.TESTENV TESTENV
AMQSBCG0 - starts here
**********************
MQOPEN - 'QL_1IP.MQS5.TESTENV'
MQGET of message number 1
****Message descriptor****
StrucId : 'MD ' Version : 2
Report : 0 MsgType : 2
Expiry : -1 Feedback : 0
Encoding : 785 CodedCharSetId : 500
Format : 'MQIMS '
Priority : 0 Persistence : 1
MsgId : X'C3E2D840D4D8E2F54040404040404040C07FAF6E615E3F26'
CorrelId : X'313137373438353338353339390000000000000000000000'
BackoutCount : 0
ReplyToQ : ' '
ReplyToQMgr : 'MQS5 '
** Identity Context
UserIdentifier : 'allcont '
AccountingToken :
X'0437393638000000000000000000000000000000000000000000000000000006'
ApplIdentityData : ' '
** Origin Context
PutApplType : '20'
PutApplName : 'MQIMS0B IMS5 '
PutDate : '20070425' PutTime : '07162602'
ApplOriginData : ' '
GroupId : X'000000000000000000000000000000000000000000000000'
MsgSeqNumber : '1'
Offset : '0'
MsgFlags : '0'
OriginalLength : '-1'
**** Message ****
length - 1895 bytes
00000000: C9C9 C840 0000 0001 0000 0054 0000 0311 '...@.......T....'
00000010: 0000 0000 D4D8 C9D4 E2E5 E240 0000 0000 '...........@....'
00000020: D4C1 E2E3 C5D9 4040 D4D6 C4E4 F0F3 4040 '......@@......@@'
00000030: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000040: 0000 0000 0000 0000 0000 0000 0000 0000 '................'
00000050: 40F0 4040 0713 0300 C4D9 F2F7 F7E3 D4F1 '@.@@............'
00000060: 4040 C8C1 D9F0 F6D3 D7F1 C1D3 D3C3 D6D5 '@@..............'
00000070: E340 4040 4040 4040 4040 4040 C9D5 E5C1 '.@@@@@@@@@@@....'
00000080: D3C9 C440 D9C5 D8E4 C5E2 E340 E3E8 D7C5 '...@.......@....'
00000090: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000000A0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000000B0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000000C0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000000D0: 4040 4040 4040 4040 4040 4040 C5E7 E3C1 '@@@@@@@@@@@@....'
000000E0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000000F0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000100: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000110: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000120: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000130: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000140: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000150: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000160: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000170: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000180: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000190: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001A0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001B0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001C0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001D0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001E0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000001F0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000200: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000210: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000220: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000230: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000240: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000250: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000260: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000270: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000280: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000290: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002A0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002B0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002C0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002D0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002E0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
000002F0: 4040 4040 4040 4040 4040 4040 4040 4040 '@@@@@@@@@@@@@@@@'
00000300: 4040 4040 4040 4040 0000 0000 05DC 0000 '@@@@@@@@........'
No more messages
MQCLOSE
MQDISC$ |
|
Back to top |
|
 |
gunter |
Posted: Wed Apr 25, 2007 1:16 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
Hi,
amqsget has a very short buffer and doesn't accept truncation.
Code: |
bash-3.00$ mqrc 2080
2080 0x00000820 MQRC_TRUNCATED_MSG_FAILED
|
And you may get into trouble with your terminal if you read binary data with amqsget.
gunter _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
David.Partridge |
Posted: Wed Apr 25, 2007 2:42 am Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
Junk data - do you mean that its not ASCII? If so are they getting messages with conversion? I bet they aren't and are getting the data in EBCDIC!
Dave |
|
Back to top |
|
 |
gunter |
Posted: Wed Apr 25, 2007 3:23 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
The messageformat MQIMS starts with an binary field, this field is not converted from EBCDIC to ASCII, MQ only converts the byte order.
amqsget uses printf to write the content. printf writes only until it gets an zero byte. Other not printable characters are control sequences and will change the behavior of the terminal.
gunter _________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Apr 25, 2007 4:21 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
MQIMS msgs cannot be converted on Sun, or any other distributed system, only on mainframe systems. An attempt to call MQGET with convert on such a msg will probably result in 2110, MQRC_FORMAT_ERROR.
The msgs have to be read and converted on the mainframe and then sent to the qmgr on the Sun box. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Apr 25, 2007 4:26 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Yes the data what he is getting is now in EBCDIC.
He is supposed to change it or convert and read
Thanks and Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Apr 25, 2007 6:23 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Nigelg wrote: |
MQIMS msgs cannot be converted on Sun, or any other distributed system, only on mainframe systems. An attempt to call MQGET with convert on such a msg will probably result in 2110, MQRC_FORMAT_ERROR.
The msgs have to be read and converted on the mainframe and then sent to the qmgr on the Sun box. |
As long as the reply message's MQMD properly states that the data is EBCIDIC and that there is a proper IIH header in the buffer, there is no problem sending these types of messages back to a distributed front end. Thye will be able to convert it. I looked at some IMS reply messages that came from the mainframe on my Linux and Windows QMs, and they have a CCSID of 500 and an MQMD_Format of IIH. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
gunter |
Posted: Thu Jun 21, 2007 9:47 pm Post subject: |
|
|
Partisan
Joined: 21 Jan 2004 Posts: 307 Location: Germany, Frankfurt
|
Nigelq wrote: |
MQIMS msgs cannot be converted on Sun, or any other distributed system, only on mainframe systems |
Sorry, the thread is quite old.
I searched the docs because I have to convert MQFMT_IMS_VAR_STRING on a decentral system. The sending system changed from IMS to Sun but the receiving system on Sun or Windows still expects MQFMT_IMS_VAR_STRING.
From: http://www-306.ibm.com/software/integration/mqfamily/library/manualsa/csqzak05/csqzak051h.htm
Quote: |
In the following environments, the MQGMO_CONVERT option can be specified on the MQGET call to convert messages that have format MQFMT_IMS: AIX, HP-UX, OS/390, OS/2, AS/400, Sun Solaris, Windows NT, plus MQSeries clients connected to these systems. |
_________________ Gunter Jeschawitz
IBM Certified System Administrator - Websphere MQ, 5.3 |
|
Back to top |
|
 |
|